request_interception

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "request_interception"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Status      int       `json:"status" label:"响应状态码" minimum:"100" default:"200" description:"最小值:100"`
	Body        string    `json:"body" label:"响应体"`
	ContentType string    `json:"content_type" label:"响应体类型" default:"application/json" enum:"text/plain,text/html,application/json"`
	Headers     []*Header `json:"headers" label:"响应头"`
}
type Header struct {
	Key   string   `json:"key" label:"响应头Key"`
	Value []string `json:"value" label:"响应头Value"`
}

Jump to

Keyboard shortcuts

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