header

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderType

type HeaderType byte

HeaderType represents all 'valid' HTTP request headers

const (
	UNKNOWN HeaderType = iota
	HOST
	UPGRADE
	CONNECTION
	ORIGIN
	WSKEY
	WSPROTOCOL
	WSEXTENSIONS
	WSVERSION
)

type HeaderValue

type HeaderValue [][]byte

HeaderValue represents a unique or multiple header value(s)

type T

type T struct {
	Name   HeaderType
	Values HeaderValue
}

T represents the data of a HTTP request header

func Parse

func Parse(b []byte) (*T, error)

parse tries to return a 'T' (httpHeader) from a byte array

Jump to

Keyboard shortcuts

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