request

package
v0.0.88 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHTTPResponse

func CreateHTTPResponse(statusCode int, redirectChain []string, headers map[string][]string, responseBody string) common.HttpResponse

CreateHTTPResponse creates an HttpResponse struct from HttpResponse data

func GetHeaderValueFromHeaderMap

func GetHeaderValueFromHeaderMap(headers map[string][]string, name string) *string

GetHeaderValueFromHeaderMap extracts a single header value from response header map. Returns the first value found for the given header name, or nil if not found.

func GetResponseBodyStringFromBodyStruct

func GetResponseBodyStringFromBodyStruct(body *common.Body) *string

GetResponseBodyStringFromBodyStruct extracts string content from a Body struct

func SplitTargetURL

func SplitTargetURL(target string) (string, string, error)

SplitTargetURL splits a target URL and standardizes it into its base URL and path components.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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