Versions in this module Expand all Collapse all v1 v1.0.1 Jan 30, 2020 v1.0.0 Jan 30, 2020 Changes in this version + func NewRequest(method, url string, body io.Reader) engine.Request + type Cookie struct + func (c *Cookie) Domain() string + func (c *Cookie) Expires() time.Time + func (c *Cookie) HTTPOnly() bool + func (c *Cookie) Name() string + func (c *Cookie) Path() string + func (c *Cookie) SameSite() http.SameSite + func (c *Cookie) Secure() bool + func (c *Cookie) Value() string + type Header struct + func (h *Header) Add(key, val string) + func (h *Header) Contains(key string) bool + func (h *Header) Del(key string) + func (h *Header) Get(key string) string + func (h *Header) Keys() (keys []string) + func (h *Header) Set(key, val string) + type Pool struct + type Request struct + func (r *Request) Body() io.Reader + func (r *Request) ContentLength() int64 + func (r *Request) Cookie(name string) (engine.Cookie, error) + func (r *Request) Cookies() []engine.Cookie + func (r *Request) FormFile(name string) (*multipart.FileHeader, error) + func (r *Request) FormParams() map[string][]string + func (r *Request) FormValue(name string) string + func (r *Request) Header() engine.Header + func (r *Request) Host() string + func (r *Request) IsTLS() bool + func (r *Request) Method() string + func (r *Request) MultipartForm() (*multipart.Form, error) + func (r *Request) RealIP() string + func (r *Request) Referer() string + func (r *Request) RemoteAddress() string + func (r *Request) Scheme() string + func (r *Request) SetBody(reader io.Reader) + func (r *Request) SetHost(host string) + func (r *Request) SetMethod(method string) + func (r *Request) SetURI(uri string) + func (r *Request) URI() string + func (r *Request) URL() engine.URL + func (r *Request) UserAgent() string + type Response struct + func (r *Response) Committed() bool + func (r *Response) Header() engine.Header + func (r *Response) SetCookie(c engine.Cookie) + func (r *Response) SetWriter(w io.Writer) + func (r *Response) Size() int64 + func (r *Response) Status() int + func (r *Response) Write(b []byte) (n int, err error) + func (r *Response) WriteHeader(code int) + func (r *Response) Writer() io.Writer + type ResponseRecorder struct + Body *bytes.Buffer + func NewResponseRecorder() *ResponseRecorder + type Server struct + func New(addr string) *Server + func NewConfig(c *engine.Config) (s *Server) + func NewTLS(addr, certFile, keyFile string) *Server + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) SetHandler(h engine.Handler) + func (s *Server) SetLogger(l *log.Logger) + func (s *Server) Start() error + func (s *Server) Stop() error + type URL struct + func (u *URL) Path() string + func (u *URL) QueryParam(name string) string + func (u *URL) QueryParams() map[string][]string + func (u *URL) QueryString() string + func (u *URL) SetPath(path string) + func (u *URL) URL() *url.URL