uhttp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MAXX_ = "Agent mmmmmmmmAXx_"

Variables

This section is empty.

Functions

func ExtractTitle added in v0.0.6

func ExtractTitle(html string) string

func GET

func GET(input RequestInput) (statusCode int, header http.Header, html string, err error)

func POST

func POST(input RequestInput) (statusCode int, header http.Header, html string, err error)

func ParseHTTPHeaderAndBodyFromString added in v0.0.6

func ParseHTTPHeaderAndBodyFromString(resp string) (http.Header, string)

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