postprocessor

package
v0.5.32 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertResponse

type AssertResponse struct {
	Headers    map[string]string
	Body       []string
	StatusCode int `config:"status_code"`
	Size       *AssertSize
}

func (AssertResponse) Process

func (a AssertResponse) Process(resp *http.Response, body io.Reader) (map[string]any, error)

func (AssertResponse) Validate

func (a AssertResponse) Validate() error

type AssertSize

type AssertSize struct {
	Val int
	Op  string
}

type Config

type Config struct {
	Mapping map[string]string
}

type VarHeaderPostprocessor

type VarHeaderPostprocessor struct {
	Mapping map[string]string
}

func (*VarHeaderPostprocessor) Process

func (p *VarHeaderPostprocessor) Process(resp *http.Response, _ io.Reader) (map[string]any, error)

func (*VarHeaderPostprocessor) ReturnedParams

func (p *VarHeaderPostprocessor) ReturnedParams() []string

type VarJsonpathPostprocessor

type VarJsonpathPostprocessor struct {
	Mapping map[string]string
}

func (*VarJsonpathPostprocessor) Process

func (p *VarJsonpathPostprocessor) Process(_ *http.Response, body io.Reader) (map[string]any, error)

func (*VarJsonpathPostprocessor) ReturnedParams

func (p *VarJsonpathPostprocessor) ReturnedParams() []string

type VarXpathPostprocessor

type VarXpathPostprocessor struct {
	Mapping map[string]string
}

func (*VarXpathPostprocessor) Process

func (p *VarXpathPostprocessor) Process(_ *http.Response, body io.Reader) (map[string]any, error)

func (*VarXpathPostprocessor) ReturnedParams

func (p *VarXpathPostprocessor) ReturnedParams() []string

Jump to

Keyboard shortcuts

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