perkeep.org: perkeep.org/pkg/blobserver/gethandler Index | Files

package gethandler

import "perkeep.org/pkg/blobserver/gethandler"

Package gethandler implements the HTTP handler for fetching blobs.

Index

Package Files

get.go

func CreateGetHandler Uses

func CreateGetHandler(fetcher blob.Fetcher) http.Handler

CreateGetHandler returns an http Handler for serving blobs from fetcher.

func ServeBlobRef Uses

func ServeBlobRef(rw http.ResponseWriter, req *http.Request, blobRef blob.Ref, fetcher blob.Fetcher)

ServeBlobRef serves a blob.

type Handler Uses

type Handler struct {
    Fetcher blob.Fetcher
}

Handler is the HTTP handler for serving GET requests of blobs.

func (*Handler) ServeHTTP Uses

func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Package gethandler imports 11 packages (graph) and is imported by 3 packages. Updated 2019-06-30. Refresh now. Tools for package owners.