request

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Initialized    int = iota // 0
	ParsingHeaders            // 1
	ParsingBody               // 2
	Done                      // 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	RequestLine RequestLine
	Status      int
	Headers     headers.Headers
	Body        []byte
}

func RequestFromReader

func RequestFromReader(reader io.Reader) (*Request, error)

type RequestLine

type RequestLine struct {
	HttpVersion   string
	RequestTarget string
	Method        string
}

Jump to

Keyboard shortcuts

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