standard

package
v2.0.0-apha.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	// contains filtered or unexported fields
}

func (*Header) Add

func (h *Header) Add(key, val string)

func (*Header) Del

func (h *Header) Del(key string)

func (*Header) Get

func (h *Header) Get(key string) string

func (*Header) Object

func (h *Header) Object() interface{}

func (*Header) Set

func (h *Header) Set(key, val string)

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

type Request

type Request struct {
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(r *http.Request) *Request

func (*Request) Body

func (r *Request) Body() io.ReadCloser

func (*Request) FormValue

func (r *Request) FormValue(name string) string

func (*Request) Header

func (r *Request) Header() engine.Header

func (*Request) Host

func (r *Request) Host() string

func (*Request) Method

func (r *Request) Method() string

func (*Request) Object

func (r *Request) Object() interface{}

func (*Request) RemoteAddress

func (r *Request) RemoteAddress() string

func (*Request) Scheme

func (r *Request) Scheme() string

func (*Request) TLS

func (r *Request) TLS() bool

func (*Request) URI

func (r *Request) URI() string

func (*Request) URL

func (r *Request) URL() engine.URL

type Response

type Response struct {
	// contains filtered or unexported fields
}

func NewResponse

func NewResponse(w http.ResponseWriter, l logger.Logger) *Response

func (*Response) Committed

func (r *Response) Committed() bool

func (*Response) Header

func (r *Response) Header() engine.Header

func (*Response) Object

func (r *Response) Object() interface{}

func (*Response) SetWriter

func (r *Response) SetWriter(w io.Writer)

func (*Response) Size

func (r *Response) Size() int64

func (*Response) Status

func (r *Response) Status() int

func (*Response) Write

func (r *Response) Write(b []byte) (n int, err error)

func (*Response) WriteHeader

func (r *Response) WriteHeader(code int)

func (*Response) Writer

func (r *Response) Writer() io.Writer

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func New

func New(addr string) *Server

func NewConfig

func NewConfig(c *engine.Config) (s *Server)

func NewTLS

func NewTLS(addr, certfile, keyfile string) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) SetHandler

func (s *Server) SetHandler(h engine.HandlerFunc)

func (*Server) SetLogger

func (s *Server) SetLogger(l logger.Logger)

func (*Server) Start

func (s *Server) Start()

type URL

type URL struct {
	// contains filtered or unexported fields
}

func (*URL) Object

func (u *URL) Object() interface{}

func (*URL) Path

func (u *URL) Path() string

func (*URL) QueryValue

func (u *URL) QueryValue(name string) string

func (*URL) SetPath

func (u *URL) SetPath(path string)

func (*URL) URL

func (u *URL) URL() *url.URL

Jump to

Keyboard shortcuts

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