Documentation
¶
Index ¶
- type Cookie
- type Cookies
- type Header
- type Headers
- func (h Headers) Clone() Headers
- func (h Headers) Contains(k string) bool
- func (h Headers) Get(k string) *Header
- func (h Headers) GetValue(k string) string
- func (h Headers) Merge(data npncore.Data, logger *logrus.Logger) Headers
- func (h Headers) Set(k string, v string) Headers
- func (h Headers) Sort()
- func (h Headers) ToHTTP() http.Header
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,omitempty"`
Domain string `json:"domain,omitempty"`
Expires time.Time `json:"expires,omitempty"`
MaxAge int `json:"maxAge,omitempty"`
Secure bool `json:"secure,omitempty"`
HTTPOnly bool `json:"httpOnly,omitempty"`
SameSite string `json:"sameSite,omitempty"`
}
func (*Cookie) NativeSmall ¶
type Header ¶
Click to show internal directories.
Click to hide internal directories.