Documentation
¶
Index ¶
- Constants
- func TrimRight(s string, cutset byte) string
- func TrimRightBytes(b []byte, cutset byte) []byte
- type Ctx
- type Group
- type Handler
- type Seni
- func (s *Seni) Delete(path string, handlers ...Handler)
- func (s *Seni) Get(path string, handlers ...Handler)
- func (s *Seni) Group(prefix string, handlers ...Handler) *Group
- func (s *Seni) Listen(address string) error
- func (s *Seni) Post(path string, handlers ...Handler)
- func (s *Seni) Put(path string, handlers ...Handler)
- func (s *Seni) Shutdown() error
- func (s *Seni) Test(req *http.Request) (*http.Response, error)
- func (s *Seni) Use(handlers ...Handler)
Constants ¶
View Source
const ( MethodGet = "GET" // RFC 7231, 4.3.1 MethodHead = "HEAD" // RFC 7231, 4.3.2 MethodPost = "POST" // RFC 7231, 4.3.3 MethodPut = "PUT" // RFC 7231, 4.3.4 MethodPatch = "PATCH" // RFC 5789 MethodDelete = "DELETE" // RFC 7231, 4.3.5 MethodConnect = "CONNECT" // RFC 7231, 4.3.6 MethodOptions = "OPTIONS" // RFC 7231, 4.3.7 MethodTrace = "TRACE" // RFC 7231, 4.3.8 )
HTTP methods were copied from net/http.
Variables ¶
This section is empty.
Functions ¶
func TrimRightBytes ¶
TrimRightBytes is the equivalent of bytes.TrimRight
Types ¶
type Ctx ¶
type Ctx struct { Fasthttp *fasthttp.RequestCtx // contains filtered or unexported fields }
func (*Ctx) SendString ¶
Click to show internal directories.
Click to hide internal directories.