Documentation ¶
Overview ¶
Package http provides a http Image Provider
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPProvider ¶
type HTTPProvider struct{}
HTTPProvider represents a http Image Provider
func (*HTTPProvider) Get ¶
func (provider *HTTPProvider) Get(source interface{}, parameters imageserver.Parameters) (*imageserver.Image, error)
Get returns an Image for an http source
If the source is not an url, the string representation of the source will be used to create one.
Returns an error if the http status code is not 200 (OK).
The image type is determined by the "Content-Type" header.
Click to show internal directories.
Click to hide internal directories.