Versions in this module Expand all Collapse all v0 v0.2.0 Jan 11, 2025 Changes in this version + type CookieOptions struct + Domain string + Expires time.Time + HttpOnly bool + MaxAge int + Path string + SameSite http.SameSite + Secure bool + type Cookies struct + Request *http.Request + Response http.ResponseWriter + func (co *Cookies) GetCookie(name string) (string, error) + func (co *Cookies) SetCookie(name, value string, options *CookieOptions) + type Request struct + Body Req + Cookies Cookies + Request *http.Request + Response http.ResponseWriter + func (c *Request[Req]) GetFile(fieldName string) (multipart.File, *multipart.FileHeader, error) + func (c *Request[Req]) GetForm(formName string) string + func (c *Request[Req]) GetHeader(header string) string + func (c *Request[Req]) GetIP() string + func (c *Request[Req]) GetPathParam(pathParam string) string + func (c *Request[Req]) GetPathParamDefault(pathParam, defaultValue string) string + func (c *Request[Req]) GetQueryParam(queryParam string) string + func (c *Request[Req]) GetQueryParamDefault(queryParam, defaultValue string) string + func (c *Request[Req]) Json(statusCode int, data any) error + func (c *Request[Req]) Redirect(statusCode int, url string) + func (c *Request[Req]) Text(statusCode int, message string) + type Response struct + Error error + Response Res + StatusCode int