http

package
v0.0.0-...-b7db0ac Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ConfigMaxIdleConnsPerHost ...
	ConfigMaxIdleConnsPerHost = 50
)

Variables

View Source
var (
	//RequestErrorUrn ...
	RequestErrorUrn = core.ErrorUrn.ForConnector("http").Name("request")

	//ResponseErrorUrn ...
	ResponseErrorUrn = core.ErrorUrn.ForConnector("http").Name("response")

	//RequestURLUrn ...
	RequestURLUrn = core.NewUrn("http").Name("request", "url")

	//RequestBytesUrn ...
	RequestBytesUrn = core.BytesSentCountUrn.ForConnector("http")

	//ResponseBytesUrn ...
	ResponseBytesUrn = core.BytesReceivedCountUrn.ForConnector("http")

	//ResponseStatusUrn ...
	ResponseStatusUrn = core.NewUrn("http").Name("response", "status")

	//RequestHeadersUrn ...
	RequestHeadersUrn = core.NewUrn("http").Name("request", "headers")

	//ResponseHeadersUrn ...
	ResponseHeadersUrn = core.NewUrn("http").Name("response", "headers")
)

Functions

func NewDefaultsExtractor

func NewDefaultsExtractor() defaultsExtractor

Types

type ExecutionResultProcessor

type ExecutionResultProcessor struct {
}

ExecutionResultProcessor ...

func NewExecutionResultProcessor

func NewExecutionResultProcessor() ExecutionResultProcessor

NewExecutionResultProcessor ...

func (ExecutionResultProcessor) Process

func (instance ExecutionResultProcessor) Process(result core.ExecutionResult, registry metrics.Registry)

Process ...

type HTTPAction

type HTTPAction struct {
	State HttpActionState
	// contains filtered or unexported fields
}

Action ...

func CreateAction

func CreateAction() HTTPAction

func (HTTPAction) Execute

func (instance HTTPAction) Execute(ctx context.Context, executionContext core.ExecutionContext) core.ExecutionResult

Execute ...

type HttpActionState

type HttpActionState struct {
	URL     string
	Method  string
	Body    string
	Headers http.Header
}

type YamlHTTPRequestParser

type YamlHTTPRequestParser struct{}

YamlHTTPRequestParser ...

func (YamlHTTPRequestParser) Key

func (instance YamlHTTPRequestParser) Key() string

Key ...

func (YamlHTTPRequestParser) Parse

func (instance YamlHTTPRequestParser) Parse(input map[string]interface{}) core.Action

Parse ...

Jump to

Keyboard shortcuts

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