header

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Order  int64  `json:"order"`
	Status bool   `json:"status"`
	Value  string `json:"value"`
}

func NewHeader

func NewHeader(order int64, status bool, value string) Header

type Headers

type Headers struct {
	Headers map[string][]Header `json:"headers"`
}

func NewHeaders

func NewHeaders() *Headers

func (*Headers) Add

func (h *Headers) Add(key, value string) *Headers

func (*Headers) AddHeader

func (h *Headers) AddHeader(key string, header Header) *Headers

func (*Headers) AddStatus

func (h *Headers) AddStatus(key, value string, status bool) *Headers

func (*Headers) Find

func (h *Headers) Find(key string) ([]Header, bool)

func (*Headers) FindIndex

func (h *Headers) FindIndex(key string, index int) (*Header, bool)

func (*Headers) SizeOf

func (q *Headers) SizeOf(key string) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL