httpfile

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PREMETHOD        = iota
	METHOD           = iota
	HEADER           = iota
	BODY             = iota
	RESPONSEFUNCTION = iota
)

Variables

This section is empty.

Functions

func HTTPFileParser

func HTTPFileParser(path string, overridesPath string, addKeepAlive bool) []http.Request

func PrepareRequest

func PrepareRequest(r HTTPFile, addKeepAlive bool) *http.Request

Types

type HTTPFile

type HTTPFile struct {
	Name string

	Comments []string

	Method    string
	URL       string
	Parameter []HTTPParameter
	Header    []HTTPHeader
	Body      string

	ResponseFunction string

	Tags []string
}

func NewHTTPFile

func NewHTTPFile() HTTPFile

type HTTPHeader

type HTTPHeader struct {
	Key   string
	Value string
}

func AuthToBase64

func AuthToBase64(header HTTPHeader) HTTPHeader

Transforms request

Authentification: Basic abcd efgh

to

Authentification: Basic Base64(abcd:efgh)

type HTTPParameter

type HTTPParameter struct {
	Key   string
	Value string
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳