Documentation
¶
Index ¶
- Constants
- type Ctx
- func (ctx *Ctx) Attachment(args ...interface{})
- func (ctx *Ctx) BasicAuth() (user, pass string, ok bool)
- func (ctx *Ctx) Body(args ...interface{}) string
- func (ctx *Ctx) ClearCookies(args ...interface{})
- func (ctx *Ctx) Cookies(args ...interface{}) string
- func (ctx *Ctx) Download(args ...interface{})
- func (ctx *Ctx) FormFile(key string) (*multipart.FileHeader, error)
- func (ctx *Ctx) FormValue(key string) string
- func (ctx *Ctx) Get(key string) string
- func (ctx *Ctx) Hostname() string
- func (ctx *Ctx) IP() string
- func (ctx *Ctx) Is(ext string) bool
- func (ctx *Ctx) Json(v interface{}) error
- func (ctx *Ctx) Location(path string)
- func (ctx *Ctx) Method() string
- func (ctx *Ctx) MultipartForm() (*multipart.Form, error)
- func (ctx *Ctx) Next()
- func (ctx *Ctx) OriginalURL() string
- func (ctx *Ctx) Params(key string) string
- func (ctx *Ctx) Path() string
- func (ctx *Ctx) Protocol() string
- func (ctx *Ctx) Query(key string) string
- func (ctx *Ctx) Redirect(args ...interface{})
- func (ctx *Ctx) SaveFile(fh *multipart.FileHeader, path string)
- func (ctx *Ctx) Secure() bool
- func (ctx *Ctx) Send(args ...interface{})
- func (ctx *Ctx) SendFile(file string)
- func (ctx *Ctx) Set(key string, val string)
- func (ctx *Ctx) Status(status int) *Ctx
- func (ctx *Ctx) Type(ext string) *Ctx
- func (ctx *Ctx) Write(args ...interface{})
- func (ctx *Ctx) Xhr() bool
- type Fiber
- func (r *Fiber) All(args ...interface{})
- func (r *Fiber) Connect(args ...interface{})
- func (r *Fiber) Delete(args ...interface{})
- func (r *Fiber) Get(args ...interface{})
- func (r *Fiber) Head(args ...interface{})
- func (r *Fiber) Listen(args ...interface{})
- func (r *Fiber) Options(args ...interface{})
- func (r *Fiber) Patch(args ...interface{})
- func (r *Fiber) Post(args ...interface{})
- func (r *Fiber) Put(args ...interface{})
- func (r *Fiber) Trace(args ...interface{})
- func (r *Fiber) Use(args ...interface{})
- type Settings
Constants ¶
View Source
const (
Version = `v0.4.0`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ctx ¶
type Ctx struct {
Fasthttp *fasthttp.RequestCtx
// contains filtered or unexported fields
}
Context struct
func (*Ctx) FormFile ¶
func (ctx *Ctx) FormFile(key string) (*multipart.FileHeader, error)
FormFile :
func (*Ctx) MultipartForm ¶
MultipartForm :
type Fiber ¶
type Fiber struct {
Settings *Settings
// contains filtered or unexported fields
}
Fiber :
type Settings ¶
type Settings struct {
Name string
ClearTerminal bool
HideBanner bool
TLSEnable bool
CertKey string
CertFile string
Concurrency int
DisableKeepAlive bool
ReadBufferSize int
WriteBufferSize int
ReadTimeout time.Duration
WriteTimeout time.Duration
IdleTimeout time.Duration
MaxConnsPerIP int
MaxRequestsPerConn int
TCPKeepalive bool
TCPKeepalivePeriod time.Duration
MaxRequestBodySize int
ReduceMemoryUsage bool
GetOnly bool
DisableHeaderNamesNormalizing bool
SleepWhenConcurrencyLimitsExceeded time.Duration
NoDefaultServerHeader bool
NoDefaultContentType bool
KeepHijackedConns bool
}
Settings :
Click to show internal directories.
Click to hide internal directories.
