/imageproxy_exercise

Code exercise: An http proxy that converts images to grayscale

Primary LanguageGoCreative Commons Zero v1.0 UniversalCC0-1.0

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.)