bypass

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCloudFlareByPass

func AddCloudFlareByPass(inner http.RoundTripper, options ...Options) http.RoundTripper

AddCloudFlareByPass returns a round tripper adding the required headers for the CloudFlare checks and updates the TLS configuration of the passed inner transport.

Types

type Options

type Options struct {
	AddMissingHeaders bool
	Headers           map[string]string
}

Options the option to set custom headers

Jump to

Keyboard shortcuts

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