net.http.handler.gzip: a FileServer that serves gzipped content. Usage: import "net/http/handler/gzip" base := "/path/to/website/static/files" http.Handle("/static", http.StripPrefix("/static", gzip.FileServer(http.Dir(base)))) Run the example: # (checkout) # export GOPATH=`pwd` # go install net/http/handler/gzip/example # ./bin/example Usage of http.FileServer can be replaced with gzip.FileServer. A request for <file> serves <file>.gz instead if its modification time is not before the original file's, or if the original does not exist. Serves the original if the request doesn't support the "gzip" encoding. index.html can also be gzipped as a default for directories (index.html.gz).
A net.http.Handler similar to FileServer that serves gzipped content
Owner
Joao da Silva
Similar Resources
Go (golang) http calls with retries and backoff
pester pester wraps Go's standard lib http client to provide several options to increase resiliency in your request. If you experience poor network co
http client for golang
Request HTTP client for golang, Inspired by Javascript-axios Python-request. If you have experience about axios or requests, you will love it. No 3rd
Simple HTTP and REST client library for Go
Resty Simple HTTP and REST client library for Go (inspired by Ruby rest-client) Features section describes in detail about Resty capabilities Resty Co
A nicer interface for golang stdlib HTTP client
rq A nicer interface for golang stdlib HTTP client Documents rq: here client: here jar: here Why? Because golang HTTP client is a pain in the a... Fea
A Go HTTP client library for creating and sending API requests
Sling Sling is a Go HTTP client library for creating and sending API requests. Slings store HTTP Request properties to simplify sending requests and d
HTTP Load Testing And Benchmarking Tool
GBench HTTP Load Testing And Benchmarking Tool inspired by Apache Benchmark and Siege. Requirements You need Golang installed and ready on your system
HTTP/HTTPS load testing and benchmarking tool
Introduction I wrote that code because: (the obvious reason::I love to write code in Go) We are working so hard to optimize our servers - why shouldn'
An HTTP proxy library for Go
Introduction Package goproxy provides a customizable HTTP proxy library for Go (golang), It supports regular HTTP proxy, HTTPS through CONNECT, and "h
Useful HTTP middlewares
This project contains middlewares that I often found myself reimplementing in new projects. In addition, it includes a middleware that logs in a forma
Comments
-
Go get install?
This looks like just what I'm looking for. Trying to get it up and running.
Did a
go get github.com/joaodasilva/go-gzip-file-server
Got this:
package github.com/joaodasilva/go-gzip-file-server imports github.com/joaodasilva/go-gzip-file-server imports github.com/joaodasilva/go-gzip-file-server: no Go source files in /opt/gostuff/src/github.com/joaodasilva/go-gzip-file-server
Your README.md has instructions on how to use it but not on how to install it. Help? :-)
Related tags
fhttp is a fork of net/http that provides an array of features pertaining to the fingerprint of the golang http client.
fhttp The f stands for flex. fhttp is a fork of net/http that provides an array of features pertaining to the fingerprint of the golang http client. T
Simple HTTP package that wraps net/http
Simple HTTP package that wraps net/http
Speak HTTP like a local. (the simple, intuitive HTTP console, golang version)
http-gonsole This is the Go port of the http-console. Speak HTTP like a local Talking to an HTTP server with curl can be fun, but most of the time it'
Http client call for golang http api calls
httpclient-call-go This library is used to make http calls to different API services Install Package go get
NATS HTTP Round Tripper - This is a Golang http.RoundTripper that uses NATS as a transport.
This is a Golang http.RoundTripper that uses NATS as a transport. Included is a http.RoundTripper for clients, a server that uses normal HTTP Handlers and any existing http handler mux and a Caddy Server transport.
Http-conection - A simple example of how to establish a HTTP connection using Golang
A simple example of how to establish a HTTP connection using Golang
Full-featured, plugin-driven, extensible HTTP client toolkit for Go
gentleman Full-featured, plugin-driven, middleware-oriented toolkit to easily create rich, versatile and composable HTTP clients in Go. gentleman embr
An enhanced http client for Golang
go-http-client An enhanced http client for Golang Documentation on go.dev ?? This package provides you a http client package for your http requests. Y
An enhanced HTTP client for Go
Heimdall Description Installation Usage Making a simple GET request Creating a hystrix-like circuit breaker Creating a hystrix-like circuit breaker wi
Enriches the standard go http client with retry functionality.
httpRetry Enriches the standard go http client with retry functionality using a wrapper around the Roundtripper interface. The advantage of this libra