Versions in this module Expand all Collapse all v1 v1.0.2 Mar 19, 2021 v1.0.1 Feb 21, 2021 Changes in this version + const ApplicationJSON + const ApplicationXML + const ApplicationYAML + const TextXML + func InitGzip(minLength, compressLevel int, methods []string) + func ParseEncoding(r *http.Request) string + func WriteBody(encoding string, writer io.Writer, content []byte) (bool, string, error) + func WriteFile(encoding string, writer io.Writer, file *os.File) (bool, string, error) + type BeegoInput struct + Context *Context + CruSession session.Store + RequestBody []byte + RunController reflect.Type + RunMethod string + func NewInput() *BeegoInput + func (input *BeegoInput) AcceptsHTML() bool + func (input *BeegoInput) AcceptsJSON() bool + func (input *BeegoInput) AcceptsXML() bool + func (input *BeegoInput) AcceptsYAML() bool + func (input *BeegoInput) Bind(dest interface{}, key string) error + func (input *BeegoInput) Cookie(key string) string + func (input *BeegoInput) CopyBody(MaxMemory int64) []byte + func (input *BeegoInput) Data() map[interface{}]interface{} + func (input *BeegoInput) Domain() string + func (input *BeegoInput) GetData(key interface{}) interface{} + func (input *BeegoInput) Header(key string) string + func (input *BeegoInput) Host() string + func (input *BeegoInput) IP() string + func (input *BeegoInput) Is(method string) bool + func (input *BeegoInput) IsAjax() bool + func (input *BeegoInput) IsDelete() bool + func (input *BeegoInput) IsGet() bool + func (input *BeegoInput) IsHead() bool + func (input *BeegoInput) IsOptions() bool + func (input *BeegoInput) IsPatch() bool + func (input *BeegoInput) IsPost() bool + func (input *BeegoInput) IsPut() bool + func (input *BeegoInput) IsSecure() bool + func (input *BeegoInput) IsUpload() bool + func (input *BeegoInput) IsWebsocket() bool + func (input *BeegoInput) Method() string + func (input *BeegoInput) Param(key string) string + func (input *BeegoInput) Params() map[string]string + func (input *BeegoInput) ParamsLen() int + func (input *BeegoInput) ParseFormOrMulitForm(maxMemory int64) error + func (input *BeegoInput) Port() int + func (input *BeegoInput) Protocol() string + func (input *BeegoInput) Proxy() []string + func (input *BeegoInput) Query(key string) string + func (input *BeegoInput) Refer() string + func (input *BeegoInput) Referer() string + func (input *BeegoInput) Reset(ctx *Context) + func (input *BeegoInput) ResetParams() + func (input *BeegoInput) Scheme() string + func (input *BeegoInput) Session(key interface{}) interface{} + func (input *BeegoInput) SetData(key, val interface{}) + func (input *BeegoInput) SetParam(key, val string) + func (input *BeegoInput) Site() string + func (input *BeegoInput) SubDomains() string + func (input *BeegoInput) URI() string + func (input *BeegoInput) URL() string + func (input *BeegoInput) UserAgent() string + type BeegoOutput struct + Context *Context + EnableGzip bool + Status int + func NewOutput() *BeegoOutput + func (output *BeegoOutput) Body(content []byte) error + func (output *BeegoOutput) ContentType(ext string) + func (output *BeegoOutput) Cookie(name string, value string, others ...interface{}) + func (output *BeegoOutput) Download(file string, filename ...string) + func (output *BeegoOutput) Header(key, val string) + func (output *BeegoOutput) IsCachable() bool + func (output *BeegoOutput) IsClientError() bool + func (output *BeegoOutput) IsEmpty() bool + func (output *BeegoOutput) IsForbidden() bool + func (output *BeegoOutput) IsNotFound() bool + func (output *BeegoOutput) IsOk() bool + func (output *BeegoOutput) IsRedirect() bool + func (output *BeegoOutput) IsServerError() bool + func (output *BeegoOutput) IsSuccessful() bool + func (output *BeegoOutput) JSON(data interface{}, hasIndent bool, encoding bool) error + func (output *BeegoOutput) JSONP(data interface{}, hasIndent bool) error + func (output *BeegoOutput) Reset(ctx *Context) + func (output *BeegoOutput) ServeFormatted(data interface{}, hasIndent bool, hasEncode ...bool) + func (output *BeegoOutput) Session(name interface{}, value interface{}) + func (output *BeegoOutput) SetStatus(status int) + func (output *BeegoOutput) XML(data interface{}, hasIndent bool) error + func (output *BeegoOutput) YAML(data interface{}) error + type Context struct + Input *BeegoInput + Output *BeegoOutput + Request *http.Request + ResponseWriter *Response + func NewContext() *Context + func (ctx *Context) Abort(status int, body string) + func (ctx *Context) CheckXSRFCookie() bool + func (ctx *Context) GetCookie(key string) string + func (ctx *Context) GetSecureCookie(Secret, key string) (string, bool) + func (ctx *Context) Redirect(status int, localurl string) + func (ctx *Context) RenderMethodResult(result interface{}) + func (ctx *Context) Reset(rw http.ResponseWriter, r *http.Request) + func (ctx *Context) SetCookie(name string, value string, others ...interface{}) + func (ctx *Context) SetSecureCookie(Secret, name, value string, others ...interface{}) + func (ctx *Context) WriteString(content string) + func (ctx *Context) XSRFToken(key string, expire int64) string + type Renderer interface + Render func(ctx *Context) + type Response struct + Elapsed time.Duration + Started bool + Status int + func (r *Response) CloseNotify() <-chan bool + func (r *Response) Flush() + func (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (r *Response) Pusher() (pusher http.Pusher) + func (r *Response) Write(p []byte) (int, error) + func (r *Response) WriteHeader(code int) + type StatusCode int + const BadRequest + const NotFound + func (s StatusCode) Error() string + func (s StatusCode) Render(ctx *Context)