response

package
v0.0.0-...-837652e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertCouple

type AssertCouple struct {
	Assert    mhttp.HTTPAssert
	AssertRes mhttp.HTTPResponseAssert
}

type ResponseCreateHTTPOutput

type ResponseCreateHTTPOutput struct {
	HTTPResponse    mhttp.HTTPResponse
	ResponseHeaders []mhttp.HTTPResponseHeader
	ResponseAsserts []mhttp.HTTPResponseAssert
}

func ResponseCreateHTTP

func ResponseCreateHTTP(
	ctx context.Context,
	r request.RequestResponse,
	httpID idwrap.IDWrap,
	assertions []mhttp.HTTPAssert,
	flowVars map[string]any,
) (*ResponseCreateHTTPOutput, error)

type ResponseCreateOutput

type ResponseCreateOutput struct {
	BodyRaw      []byte
	HTTPResponse mhttp.HTTPResponse

	AssertCouples []AssertCouple

	// new headers
	CreateHeaders, UpdateHeaders []mhttp.HTTPResponseHeader
	DeleteHeaderIds              []idwrap.IDWrap
}

func ResponseCreate

func ResponseCreate(ctx context.Context, r request.RequestResponse, httpResponse mhttp.HTTPResponse, lastResponseHeaders []mhttp.HTTPResponseHeader, assertions []mhttp.HTTPAssert, flowVars map[string]any) (*ResponseCreateOutput, error)

Jump to

Keyboard shortcuts

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