http11p

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAbsoluteForm

func FindAbsoluteForm(data []byte) []int

func FindAbsolutePath

func FindAbsolutePath(data []byte) []int

func FindAsteriskForm

func FindAsteriskForm(data []byte) []int

func FindAuthorityForm

func FindAuthorityForm(data []byte) []int

func FindBws

func FindBws(data []byte) []int

func FindFieldContent

func FindFieldContent(data []byte) []int

func FindFieldLine

func FindFieldLine(data []byte) []int

func FindFieldName

func FindFieldName(data []byte) []int

func FindFieldVChar

func FindFieldVChar(data []byte) []int

func FindFieldValue

func FindFieldValue(data []byte) []int

func FindHttpMessage

func FindHttpMessage(data []byte) []int

func FindHttpName

func FindHttpName(data []byte) []int

func FindHttpVersion

func FindHttpVersion(data []byte) []int

func FindMessageBody

func FindMessageBody(data []byte) []int

func FindMethod

func FindMethod(data []byte) []int

func FindObsText

func FindObsText(data []byte) []int

func FindOriginForm

func FindOriginForm(data []byte) []int

func FindOws

func FindOws(data []byte) []int

func FindQdText

func FindQdText(data []byte) []int

NOTE x21 : ! x23-5B : #, $, %, & ' ( ) * + , - . / 0-9, : ; < = > ? @ A-Z [ x5D-7E : ] ^ _ ` a-z { | } ~

func FindQuotedPair

func FindQuotedPair(data []byte) []int

func FindQuotedString

func FindQuotedString(data []byte) []int

func FindReasonPhrase

func FindReasonPhrase(data []byte) []int

func FindRequestLine

func FindRequestLine(data []byte) []int

func FindRequestTarget

func FindRequestTarget(data []byte) []int

func FindRws

func FindRws(data []byte) []int

func FindStartLine

func FindStartLine(data []byte) []int

func FindStatusCode

func FindStatusCode(data []byte) []int

func FindStatusLine

func FindStatusLine(data []byte) []int

func FindTChar

func FindTChar(data []byte) []int

func FindToken

func FindToken(data []byte) []int

func FindUriHost

func FindUriHost(data []byte) []int

Types

type FieldLine

type FieldLine struct {
	FieldName  []byte
	FieldValue []byte
}

type Http11Request

type Http11Request struct {
	Method        []byte
	RequestTarget []byte
	HttpVersion   []byte
	FieldLines    []FieldLine
	MessageBody   []byte
}

func (Http11Request) GetHeader

func (req Http11Request) GetHeader(name string) []byte

func (*Http11Request) Marshal

func (req *Http11Request) Marshal(data []byte) (err error)

func (Http11Request) String

func (req Http11Request) String() string

func (Http11Request) Unmarshal

func (req Http11Request) Unmarshal() (data []byte)

type Http11Response

type Http11Response struct {
	HttpVersion  []byte
	StatusCode   []byte
	ReasonPhrase []byte
	FieldLines   []FieldLine
	MessageBody  []byte
}

func (Http11Response) GetHeader

func (resp Http11Response) GetHeader(name string) []byte

func (*Http11Response) Marshal

func (resp *Http11Response) Marshal(data []byte) (err error)

func (Http11Response) String

func (resp Http11Response) String() string

func (Http11Response) Unmarshal

func (resp Http11Response) Unmarshal() (data []byte)

Jump to

Keyboard shortcuts

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