fasthttp

package
v2.0.0-beta.1+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapHandler

func WrapHandler(h fasthttp.RequestHandler) echo.HandlerFunc

WrapHandler wraps `fasthttp.RequestHandler` into `echo.HandlerFunc`.

func WrapMiddleware

func WrapMiddleware(h fasthttp.RequestHandler) echo.MiddlewareFunc

WrapMiddleware wraps `fasthttp.RequestHandler` into `echo.MiddlewareFunc`

Types

type Pool

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

type Request

type Request struct {
	*fasthttp.RequestCtx
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(c *fasthttp.RequestCtx) *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) 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 RequestHeader

type RequestHeader struct {
	fasthttp.RequestHeader
}

func (*RequestHeader) Add

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

func (*RequestHeader) Del

func (h *RequestHeader) Del(key string)

func (*RequestHeader) Get

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

func (*RequestHeader) Set

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

type Response

type Response struct {
	*fasthttp.RequestCtx
	// contains filtered or unexported fields
}

func NewResponse

func NewResponse(c *fasthttp.RequestCtx) *Response

func (*Response) Committed

func (r *Response) Committed() bool

func (*Response) Header

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

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) (int, error)

func (*Response) WriteHeader

func (r *Response) WriteHeader(code int)

func (*Response) Writer

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

type ResponseHeader

type ResponseHeader struct {
	fasthttp.ResponseHeader
}

func (*ResponseHeader) Add

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

func (*ResponseHeader) Del

func (h *ResponseHeader) Del(key string)

func (*ResponseHeader) Get

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

func (*ResponseHeader) Set

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

type Server

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

func New

func New(addr string) *Server

func NewFromConfig

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

func NewFromTLS

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

func (*Server) SetHandler

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

func (*Server) SetLogger

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

func (*Server) Start

func (s *Server) Start()

type URL

type URL struct {
	*fasthttp.URI
}

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)

Jump to

Keyboard shortcuts

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