package
0.6.4
Repository: https://github.com/coreruleset/go-ftw.git
Documentation: pkg.go.dev

# Functions

DestinationFromString create a Destination from String.
NewClient initializes the http client, creating the cookiejar.
NewClientConfig returns a new ClientConfig with reasonable defaults.
NewRawRequest creates a new request, an initial request line, and headers.
NewRequest creates a new request, an initial request line, and headers.
NewRoundTripTime initializes a roundtriptime struct.

# Constants

ContentTypeHeader gives you the string for content type.

# Structs

Client is the top level abstraction in http.
ClientConfig provides configuration options for the HTTP client.
Connection is the type used for sending/receiving data.
Destination is the host, port and protocol to be used when connecting to a remote host.
Request represents a request This struct without defaults represents the previous "autocomplete headers" behavior.
RequestLine is the first line in the HTTP request dialog.
Response represents the http response received from the server/waf.
RoundTripTime abstracts the time a transaction takes.

# Interfaces

FTWConnection is the interface method implement to send and receive data.

# Type aliases

Header is a simplified version of headers, where there is only one header per key.