response

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Key   string `json:"key" yaml:"key" label:"header key" description:"header 的key,支持 #{label}"`
	Value string `json:"value" yaml:"value" label:"header value" description:"header 的值, 支持#{label}"`
}

type IResponse

type IResponse interface {
	Response(ctx eocontext.EoContext)
}

func Parse

func Parse(c *Response) IResponse

type Response

type Response struct {
	StatusCode  int      `json:"status_code" label:"HTTP状态码"`
	ContentType string   `json:"content_type" label:"Content-Type"`
	Charset     string   `json:"charset" label:"Charset"`
	Headers     []Header `json:"headers" label:"Header参数"` //key:value
	Body        string   `json:"body" label:"Body" description:"body模版, 支持 #{label} 语法"`
}

Jump to

Keyboard shortcuts

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