http

package
v0.0.0-...-492db17 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNilParams      = helpers.Error("nil parameters")
	ErrInvalidURL     = helpers.Error("url is empty, not a string or is not url")
	ErrInvalidMethod  = helpers.Error("method is empty or not a string")
	ErrInvalidHeaders = helpers.Error("headers is not a map[string][]string")
	ErrInvalidData    = helpers.Error("data not a []byte")
)
View Source
const ExecTypeHTTP = execs.ExecutorType("http")

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPExecutor

type HTTPExecutor struct{}

func (HTTPExecutor) CheckValid

func (HTTPExecutor) CheckValid(ps execs.Params) (bool, string)

func (HTTPExecutor) ParamsList

func (HTTPExecutor) ParamsList() execs.Params

func (HTTPExecutor) Run

func (HTTPExecutor) Run(ps execs.Params) error

func (HTTPExecutor) Type

type HTTPStruct

type HTTPStruct struct {
	URL     *url.URL
	Method  string
	Headers map[string][]string
	Data    []byte
}

Jump to

Keyboard shortcuts

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