http

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header map[string][]string

func (*Header) UnmarshalYAML

func (h *Header) UnmarshalYAML(value *yaml.Node) error

type QueryParam

type QueryParam map[string][]string

func (*QueryParam) UnmarshalYAML

func (q *QueryParam) UnmarshalYAML(value *yaml.Node) error

type Request

type Request struct {
	Type        string
	Name        string
	Description string
	Url         string
	Method      string
	Body        RequestBody `yaml:"body"`
	Headers     Header
	QueryParams QueryParam `yaml:"query_params"`
	Store       map[string]string
	Timeout     uint
	Delay       uint
	Validations validation.Validator
}

func (*Request) Execute

func (r *Request) Execute(context contract.ExecutionContext) error

Execute executes the request with the given context.

type RequestBody

type RequestBody struct {
	Content []byte
	Data    map[string]string
}

func (*RequestBody) UnmarshalYAML

func (rb *RequestBody) UnmarshalYAML(value *yaml.Node) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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