Documentation ¶
Overview ¶
Package parser provides a parser for data, header, and query parameter input strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedHeader ¶
A ParsedHeader represents a single parsed header. They may be repeated in one input.
type ParsedInput ¶
type ParsedInput struct { Headers []ParsedHeader QueryParams []ParsedQueryParam Body any }
A ParsedInput represents data gathered from a user input string.
func ParseInput ¶
func ParseInput(in []string) (*ParsedInput, error)
ParseInput parses a string of headers.
type ParsedQueryParam ¶
A ParsedQueryParam represents a single parsed query parameter. They may be repeated in one input.
Click to show internal directories.
Click to hide internal directories.