Skip to content

aybabtme/httpgzip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

package httpgzip

A handler that compresses http.ResponseWriter if its related *http.Request mentions gzip in it's Accept-Encoding headers.

If possible, the handler flushes data as it streams it, making it suitable for long streams of data that should be sent regularly.

Godoc?

Godoc!

Usage

h := MyHandler()
gzh := httpgzip.NewHandler(h)
log.Fatal(http.ListenAndServe(":8080", gzh))

That's it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages