internal

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteTheLogging added in v0.6.0

func CompleteTheLogging(res *http.Response, err error, item *logging.LogItem, log ILogger, level logging.Level) (*http.Response, error)

func PrepareTheLogItem

func PrepareTheLogItem(req *http.Request, level logging.Level) *logging.LogItem

func PrintPart added in v0.6.0

func PrintPart(out io.Writer, fs afero.Fs, hdrs http.Header, isRequest bool, file string, body []byte, longBodyThreshold int)

PrintPart prints the headers and entity (body) for either the request or the response.

func WriteBodyToFile added in v0.7.0

func WriteBodyToFile(out io.Writer, fs afero.Fs, name, extn string, body []byte)

WriteBodyToFile writes one body (entity) to a file.

Types

type ILogger added in v0.6.0

type ILogger func(item *logging.LogItem)

Jump to

Keyboard shortcuts

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