Documentation
¶
Overview ¶
Package http_io implements http handlers based on partial input/output primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements ranged http requests on top of StreamerAt interface.
func NewHandler ¶
func NewHandler(s StreamerAt, size int64) *Handler
NewHandler initializes and returns http handler for ranged requests using provided StreamerAt as file source and total file size.
func (Handler) ServeHTTP ¶
func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
func (*Handler) WithContentType ¶
WithContentType sets contentType header.
Click to show internal directories.
Click to hide internal directories.