New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vimagination.zapto.org/httpgzip

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vimagination.zapto.org/httpgzip

  • v1.0.0
  • Go
  • Socket score

Version published
Created
Source

httpgzip

-- import "vimagination.zapto.org/httpgzip"

Package httpgzip is a simple wrapper around http.FileServer that looks for a compressed version of a file and serves that if the client requested compressed

content

Usage

func FileServer
func FileServer(root http.FileSystem, roots ...http.FileSystem) http.Handler

FileServer creates a wrapper around http.FileServer using the given http.FileSystem

Additional http.FileSystem's can be specified and will be turned into a Handler that checks each in order, stopping at the first

func FileServerWithHandler
func FileServerWithHandler(root http.FileSystem, handler http.Handler, roots ...http.FileSystem) http.Handler

FileServerWithHandler acts like FileServer, but allows a custom Handler instead of the http.FileSystem wrapped http.FileServer

FAQs

Package last updated on 22 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc