header

package
v2.0.0-...-f0a18de Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Add adds the key, value pair to the header.
	Add(key string, value string)

	// Del deletes the values associated with key.
	Del(key string)

	// Get gets the first value associated with the given key.
	Get(key string) string

	// IsSet Check, is key set
	IsSet(key string) bool

	// Set sets the header entries associated with key to the single element value.
	Set(key string, value string)

	// Names Getting a list of all key names
	Names() (ret []string)

	// Len Return number of defined header names
	Len() int

	// Reset all headers
	Reset()
}

Interface is an interface of package

func New

func New(item ...http.Header) Interface

New creates a new object and return interface

Jump to

Keyboard shortcuts

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