camlistore: github.com/jbreiding/camlistore/pkg/blobserver/gethandler Index | Files

package gethandler

import "github.com/jbreiding/camlistore/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(conn http.ResponseWriter, req *http.Request)

Package gethandler imports 10 packages (graph). Updated 2018-06-25. Refresh now. Tools for package owners.