http

package
v0.0.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockHTTP     = "http"
	BlockRequest  = "request"
	BlockResponse = "response"
	LabelMethod   = "method"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct{}

func (*Decoder) BlockHeaderSchema

func (dec *Decoder) BlockHeaderSchema() hcl.BlockHeaderSchema

BlockHeaderSchema return the header schema for the plugin.

func (*Decoder) DecodeBlock

func (dec *Decoder) DecodeBlock(block *hcl.Block) (actions.Action, errors.Error)

type HTTP

type HTTP struct {
	*actions.Base
	// contains filtered or unexported fields
}

func (*HTTP) Execute

func (h *HTTP) Execute(ctx context.FeatureContext) errors.Error

func (*HTTP) Method

func (h *HTTP) Method() string

func (*HTTP) SetMethod

func (h *HTTP) SetMethod(method string)

func (*HTTP) SetRequest

func (h *HTTP) SetRequest(req *decoder.Request)

func (*HTTP) SetResponse

func (h *HTTP) SetResponse(res *decoder.Response)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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