View definition

func CompressHandler

Defined in github.com/valyala/fasthttp/server.go

Description

CompressHandler returns RequestHandler that transparently compresses response body generated by h if the request contains 'gzip' or 'deflate' 'Accept-Encoding' header.

CompressHandler is referenced in 2 repositories

github.com/valyala/fasthttp github.com/oschwald/geoip2service