package
0.28.0
Repository: https://github.com/rickb777/httpclient.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AsLevel parses a string to find the corresponding Level, accepting either one of the string values or a number.
FixedLevel is a FilterFunc that always return a specified Level.
LevelOf returns a Level based on an ordinal number.
NewVariableFilter is a Filter that initially has a fixed level.
NewVariablePredicate is a Filter with a predicate that can be changed later.

# Constants

Discrete log messages contain only a summary of the request and response.
Off turns logging off.
Summary log messages contain only a summary of the request and response, including the full target URL.
WithHeaders log messages contain a summary and the request/response headers.
WithHeadersAndBodies log messages contain a summary and the request/response headers and bodies Textual bodies are included in the log; for binary content, the size is shown instead.

# Variables

AllLevelEnums lists all 5 values in order.
AllLevels lists all 5 values in order.
ItemFileName builds a filename that distinctively represents the request that raised the LogItem.
Now provides the current time.

# Structs

No description provided by the author
LogItem records information about one HTTP round-trip.
VariableFilter is a Filter that is controlled by a predicate.

# Interfaces

A Filter determines the logging level, possibly based on each request.

# Type aliases

FilterFunc adapts a function to be a Filter.
Level allows control of the predicate of detail in log messages.