camlistore: Index | Files

package gethandler

import ""

Package gethandler implements the HTTP handler for fetching blobs.


Package Files


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.