package
1.3.0
Repository: https://github.com/asticode/go-astitools.git
Documentation: pkg.go.dev

# Functions

ChainMiddlewares chains middlewares.
ChainMiddlewaresWithPrefix chains middlewares if one of prefixes is present.
ChainRouterMiddlewares chains router middlewares.
ChainRouterMiddlewares chains router middlewares if one of prefixes is present.
Download is a cancellable function that downloads a src into a dst using a specific *http.Client.
DownloadInWriter is a cancellable function that downloads a src into a writer using a specific *http.Client.
MiddlewareBasicAuth adds basic HTTP auth to a handler.
MiddlewareContentType adds a content type to a handler.
MiddlewareHeaders adds headers to a handler.
MiddlewareTimeout adds a timeout to a handler.
NewDownloader creates a new downloader.
NewSender creates a new sender.
RouterMiddlewareBasicAuth adds basic HTTP auth to a router handler.
RouterMiddlewareContentType adds a content type to a router handler.
RouterMiddlewareHeaders adds headers to a router handler.
RouterMiddlewareTimeout adds a timeout to a router handler.
No description provided by the author

# Structs

Downloader represents a downloader.
DownloaderOptions represents downloader options.
Sender represents an object capable of sending http requests.
SenderOptions represents sender options.

# Type aliases

DownloaderFunc represents a downloader func It's its responsibility to close the reader.
Middleware represents a middleware.
RetryFunc is a function that decides whether to retry the request.
RouterMiddleware represents a router middleware.