raw

package
v0.0.0-...-ff8f6dd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignVariableRaw

func AssignVariableRaw(find string, variableMap map[string]any) string

func ExpandMapValues

func ExpandMapValues(m map[string]string) map[string][]string

func GetRawHTTP

func GetRawHTTP(timeout int) *rawhttp.Client

Types

type RawHttp

type RawHttp struct {
	RawhttpClient *rawhttp.Client
}

func (*RawHttp) RawHttpRequest

func (r *RawHttp) RawHttpRequest(request, baseurl string, variableMap map[string]any) error

type Request

type Request struct {
	FullURL        string
	Method         string
	Path           string
	Data           string
	Headers        map[string]string
	UnsafeHeaders  client.Headers
	UnsafeRawBytes []byte
}

Request defines a basic HTTP raw request

func Parse

func Parse(request, baseURL string, unsafe bool) (*Request, error)

Parse parses the raw request as supplied by the user

func (*Request) TryFillCustomHeaders

func (r *Request) TryFillCustomHeaders(headers []string) error

TryFillCustomHeaders after the Host header

Jump to

Keyboard shortcuts

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