package
3.0.0+incompatible
Repository: https://github.com/bountysecurity/gbounty.git
Documentation: pkg.go.dev

# Functions

Default is a named constructor to instantiate a new [Request] with the given remote as the [Request]'s [Request.URL].
ParseRequest parses a request from a byte slice.
RequestFromJSON creates a request from a JSON byte slice.
WithBody sets a body (not defined by [Default]).
WithData sets a body data as a form (i.e.
WithHeader adds a new header to the default ones (see [Default]).
WithHeaders modifies the default headers (see [Default]).
WithMethod modifies the default method (i.e.
WithOptions can be used to construct a [Default] request, but with some of the default values modified, like the HTTP method.
WithPath modifies the default path (i.e.
WithProto modifies the default proto (i.e.
WithTimeout modifies the default timeout (i.e.

# Variables

ErrInvalidHost is returned when building/parsing a request from plain text and the Host line is invalid.
ErrInvalidPayload is returned when building/parsing a request from plain text and the payload is invalid.

# Structs

Request is a representation of an HTTP request, complementary to the standard [http.Request] and used here and there for scans.

# Type aliases

Option defines a functional option type for [Request], that facilitates the construction of a [Default] template, but with some of the default values modified, like the HTTP method.