http

package
v0.0.0-...-0345585 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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