http

package
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	dims.Request

	// EtagAlgorithm names the digest the endpoint uses for its ETag. It is a
	// property of the endpoint, so each one sets it on its own request. Held
	// on the shared configuration it was a field one handler wrote while
	// another read it.
	EtagAlgorithm string
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(r *http.Request, w http.ResponseWriter, config core.Config) (*Request, error)

func (*Request) CacheControl

func (r *Request) CacheControl() string

func (*Request) ContentDisposition

func (r *Request) ContentDisposition() string

func (*Request) EdgeControl

func (r *Request) EdgeControl() string

func (*Request) Etag

func (r *Request) Etag() string

func (*Request) Expires

func (r *Request) Expires() string

func (*Request) HashId

func (r *Request) HashId() string

func (*Request) LastModified

func (r *Request) LastModified() string

func (*Request) NotModified

func (r *Request) NotModified() bool

NotModified reports whether the caller already holds this image. A conditional request naming the current etag needs no body.

func (*Request) SendError

func (r *Request) SendError(err error) error

func (*Request) SendHeaders

func (r *Request) SendHeaders()

func (*Request) SendImage

func (r *Request) SendImage(status int, imageFormat string, imageBlob []byte) error

func (*Request) SendNotModified

func (r *Request) SendNotModified() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL