transport.v2: Index | Files

package header

import ""


Package Files

header.go types.go

type Interface Uses

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

Interface is an interface of package

func New Uses

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

New creates a new object and return interface

Package header imports 1 packages (graph) and is imported by 4 packages. Updated 2020-02-15. Refresh now. Tools for package owners.