imageproxy_exercise

command module
v0.0.0-...-8f8ab7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2020 License: CC0-1.0 Imports: 11 Imported by: 0

README

imageproxy_exercise

Code exercise: An http proxy that converts images to grayscale

How to Build and Run

go run main.go

This project uses Go and its standard library only; no third-party packages.

Now, find an image you like at maps.wikimedia.org, and replace the scheme/host with http://localhost:5000:

Non-supported file types should return appropriate HTTP errors:

A timeout should return an HTTP 502 Bad Gateway. Set the IMAGEPROXY_TIMEOUT env var to 1 to exercise this. (The unit is milliseconds.)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL