Documentation
¶
Overview ¶
Package unwind Copyright 2025 wantnotshould. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Package unwind Copyright 2025 wantnotshould. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Package unwind Copyright 2025 wantnotshould. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Package unwind Copyright 2025 wantnotshould. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Package unwind Copyright 2025 wantnotshould. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Package unwind Copyright 2025 wantnotshould. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Index ¶
- func ClientIP(r *http.Request) string
- type Context
- func (c *Context) Abort()
- func (c *Context) Context() context.Context
- func (c *Context) Cookie(name string) (string, error)
- func (c *Context) Delete(key string)
- func (c *Context) DeleteCookie(name string)
- func (c *Context) Get(key string) (any, bool)
- func (c *Context) GetString(key string) (string, bool)
- func (c *Context) Header(key string) string
- func (c *Context) Host() string
- func (c *Context) IsAborted() bool
- func (c *Context) Method() string
- func (c *Context) Next()
- func (c *Context) Param(key string) string
- func (c *Context) Params() map[string]string
- func (c *Context) Path() string
- func (c *Context) QueryAll() url.Values
- func (c *Context) QueryParam(key string) string
- func (c *Context) Scheme() string
- func (c *Context) Set(key string, value any)
- func (c *Context) SetCookie(cookie *http.Cookie)
- func (c *Context) SetHeader(key, value string)
- func (c *Context) Status(code int)
- func (c *Context) URL() string
- type HandlerFunc
- type Unwind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Writer http.ResponseWriter
Req *http.Request
// contains filtered or unexported fields
}
Context holds request-scope data and provides helper methods.
func (*Context) Cookie ¶
Cookie gets the value of a named cookie from the request. Returns empty string and error if not found.
func (*Context) DeleteCookie ¶
DeleteCookie removes a cookie by setting it to expired.
func (*Context) GetString ¶
GetString is a convenience wrapper to retrieve and assert a string value.
func (*Context) QueryParam ¶
QueryParam returns the first value for the named query parameter.
type HandlerFunc ¶
type HandlerFunc func(*Context)
HandlerFunc defines the handler used by router.
func Logger ¶
func Logger() HandlerFunc
func Recover ¶
func Recover() HandlerFunc
type Unwind ¶
type Unwind struct {
// contains filtered or unexported fields
}