uhttp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MAXX_ = "Agent mmmmmmmmAXx_"

Variables

This section is empty.

Functions

func GET

func GET(input RequestInput) (html string, err error)

func POST

func POST(input RequestInput) (html string, err error)

func StartSimpleHttpServer

func StartSimpleHttpServer(host string, maxRuntime int, callbacks ...Callback) (accessURL string, stopFunc func(), err error)

Types

type Callback

type Callback struct {
	Signal     string
	SignalChan chan bool
	OnRequest  func(r *http.Request, signal string, signalChan chan bool)
	Stop       func()
}

type RequestInput

type RequestInput struct {
	RawUrl             string
	Proxy              string
	Timeout            time.Duration
	InsecureSkipVerify bool
	Cookies            []*network.Cookie
	Param              string
}

Jump to

Keyboard shortcuts

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