responseadaptor

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the kind of ResponseAdaptor.
	Kind = "ResponseAdaptor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseAdaptor

type ResponseAdaptor struct {
	// contains filtered or unexported fields
}

ResponseAdaptor is filter ResponseAdaptor.

func (*ResponseAdaptor) Close

func (ra *ResponseAdaptor) Close()

Close closes ResponseAdaptor.

func (*ResponseAdaptor) DefaultSpec

func (ra *ResponseAdaptor) DefaultSpec() interface{}

DefaultSpec returns default spec of ResponseAdaptor.

func (*ResponseAdaptor) Description

func (ra *ResponseAdaptor) Description() string

Description returns the description of ResponseAdaptor.

func (*ResponseAdaptor) Handle

func (ra *ResponseAdaptor) Handle(ctx context.HTTPContext) string

Handle adapts response.

func (*ResponseAdaptor) Inherit

func (ra *ResponseAdaptor) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)

Inherit inherits previous generation of ResponseAdaptor.

func (*ResponseAdaptor) Init

func (ra *ResponseAdaptor) Init(filterSpec *httppipeline.FilterSpec)

Init initializes ResponseAdaptor.

func (*ResponseAdaptor) Kind

func (ra *ResponseAdaptor) Kind() string

Kind returns the kind of ResponseAdaptor.

func (*ResponseAdaptor) Results

func (ra *ResponseAdaptor) Results() []string

Results returns the results of ResponseAdaptor.

func (*ResponseAdaptor) Status

func (ra *ResponseAdaptor) Status() interface{}

Status returns status.

type Spec

type Spec struct {
	Header *httpheader.AdaptSpec `yaml:"header" jsonschema:"required"`

	Body string `yaml:"body" jsonschema:"omitempty"`
}

Spec is HTTPAdaptor Spec.

Jump to

Keyboard shortcuts

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