middlewares

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package middlewares provides reusable cookie and header middleware for the requests HTTP client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CookieMiddleware

func CookieMiddleware(cookies []*http.Cookie) requests.Middleware

CookieMiddleware creates a middleware that adds the specified cookies to each request.

func HeaderMiddleware

func HeaderMiddleware(headers http.Header) requests.Middleware

HeaderMiddleware creates a middleware that adds the specified headers to each request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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