cfbypass

package module
v0.0.0-...-14909df Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: GPL-3.0 Imports: 14 Imported by: 1

README

cfbypass

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// LogEnabled sets logging setting to dump all requests and responses
	LogEnabled = false

	// LogBodyEnabled sets logging response body
	LogBodyEnabled = false
)

Functions

func IsCloudFlared

func IsCloudFlared(resp *http.Response) bool

IsCloudFlared checks whether http.Response is blocked by CloudFlare

func Max

func Max(x, y int64) int64

Max just a simple Max of int64

func RunClient

func RunClient(resp *http.Response, client *http.Client) (*http.Response, error)

RunClient checks http.Client response and solves the CloudFlare challenge if needed. Request is re-requested

func RunProxy

func RunProxy(resp *http.Response, ctx *goproxy.ProxyCtx) (*http.Response, error)

RunProxy checks goproxy response and solves the CloudFlare challenge if needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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