Documentation
¶
Index ¶
- type Request
- func (r *Request) CacheControl() string
- func (r *Request) ContentDisposition() string
- func (r *Request) EdgeControl() string
- func (r *Request) Etag() string
- func (r *Request) Expires() string
- func (r *Request) HashId() string
- func (r *Request) LastModified() string
- func (r *Request) NotModified() bool
- func (r *Request) SendError(err error) error
- func (r *Request) SendHeaders()
- func (r *Request) SendImage(status int, imageFormat string, imageBlob []byte) error
- func (r *Request) SendNotModified() error
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 (*Request) CacheControl ¶
func (*Request) ContentDisposition ¶
func (*Request) EdgeControl ¶
func (*Request) LastModified ¶
func (*Request) NotModified ¶
NotModified reports whether the caller already holds this image. A conditional request naming the current etag needs no body.
func (*Request) SendHeaders ¶
func (r *Request) SendHeaders()
func (*Request) SendNotModified ¶
Click to show internal directories.
Click to hide internal directories.