server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Statuses = [...]int{
		200, 201, 202, 203, 204, 205, 206,
		300, 301, 302, 303, 304, 305, 307,
		400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
		500, 501, 502, 503, 504, 505,
	}
)

Functions

This section is empty.

Types

type ParrotHandler

type ParrotHandler struct{}

func (*ParrotHandler) ServeHTTP

func (h *ParrotHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ParrotResponse

type ParrotResponse struct {
	XMLName int    `json:"-" xml:"parrot"`
	URL     string `json:"url" xml:"url"`
}

type StatusHandler

type StatusHandler struct {
	Status int
}

func (*StatusHandler) ServeHTTP

func (h *StatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type StatusResponse

type StatusResponse struct {
	XMLName int    `json:"-" xml:"status"`
	Code    int    `json:"code" xml:"code"`
	Text    string `json:"text" xml:"text"`
}

Jump to

Keyboard shortcuts

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