Documentation ¶
Index ¶
- Constants
- func Any(g lars.IRouteGroup, p string, h ...lars.Handler)
- func Anything(c *server.Context) error
- func GetHeaders(c *server.Context) error
- func GetIP(c *server.Context) error
- func GetUUID(c *server.Context) error
- func GetUserAgent(c *server.Context) error
- func Redirect(c *server.Context) error
- func Stream(c *server.Context) error
- type BaseResponse
Constants ¶
View Source
const ( StatusOK = http.StatusOK XForwardedProto = "X-Forwarded-Proto" XForwardedProtocol = "X-Forwarded-Protocol" XForwardedSSL = "X-Forwarded-Ssl" )
Variables ¶
This section is empty.
Functions ¶
func GetHeaders ¶
func GetUserAgent ¶
Types ¶
type BaseResponse ¶
type BaseResponse struct { URL string `json:"url"` Args map[string][]string `json:"args"` Form map[string][]string `json:"form"` Data []byte `json:"data"` Origin string `json:"origin"` Headers map[string][]string `json:"headers"` Files map[string][][]byte `json:"files"` JSON interface{} `json:"json"` Method string `json:"method"` }
func NewResponse ¶
func NewResponse(c lars.Context) *BaseResponse
Click to show internal directories.
Click to hide internal directories.