Documentation ¶
Index ¶
- type Cookie
- type Response
- func (response *Response) Content(input interface{}) *Response
- func (response *Response) Cookie(key string, val interface{}, params ...interface{}) *Response
- func (response *Response) Error(value interface{}, code ...int) *Response
- func (response *Response) Filename(filename string) *Response
- func (response *Response) Header(key, value string) *Response
- func (response *Response) RawCookie(cookie Cookie) *Response
- func (response *Response) Redirect(to string, code ...int) *Response
- func (response *Response) RedirectPermanent(to string) *Response
- func (response *Response) RedirectTemporary(to string) *Response
- func (response *Response) ResponseSerializer() *Response
- func (response *Response) ShowInBrowser() *Response
- func (response *Response) Status(code int) *Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct { Name string `json:"name"` Value string `json:"value"` Path string `json:"path"` Domain string `json:"domain"` Expires time.Time `json:"expires"` Secure bool `json:"secure"` HTTPOnly bool `json:"http_only"` SameSite string `json:"same_site"` }
Cookie data for ctx.Cookie
type Response ¶
type Response struct { ContentType string Data interface{} StatusCode int Headers map[string]string RedirectURL string Cookies []*Cookie Errors []string }
func RedirectPermanent ¶
func RedirectTemporary ¶
func (*Response) RedirectPermanent ¶
func (*Response) RedirectTemporary ¶
func (*Response) ResponseSerializer ¶
func (*Response) ShowInBrowser ¶
Click to show internal directories.
Click to hide internal directories.