Documentation
¶
Index ¶
- Constants
- type Connection
- type Cookie
- func (c *Cookie) Domain(ctx *hcl.EvalContext) (string, errors.Error)
- func (c *Cookie) Name(ctx *hcl.EvalContext) (string, errors.Error)
- func (c *Cookie) Path(ctx *hcl.EvalContext) (string, errors.Error)
- func (c *Cookie) SetDomain(expr hcl.Expression)
- func (c *Cookie) SetName(expr hcl.Expression)
- func (c *Cookie) SetPath(expr hcl.Expression)
- func (c *Cookie) SetValue(expr hcl.Expression)
- func (c *Cookie) Value(ctx *hcl.EvalContext) (string, errors.Error)
- type Headers
- type Payload
- type QueryParams
- type Request
- func (req *Request) AddHeaders(headers map[string]hcl.Expression)
- func (req *Request) AddQueryParams(qp map[string]hcl.Expression)
- func (req *Request) BaseURL(ctx *hcl.EvalContext) (string, errors.Error)
- func (req *Request) Connection(ctx *hcl.EvalContext) (*executor.Connection, errors.Error)
- func (req *Request) Cookies(ctx *hcl.EvalContext) ([]*executor.Cookie, errors.Error)
- func (req *Request) Headers(ctx *hcl.EvalContext) (map[string][]string, errors.Error)
- func (req *Request) Path(ctx *hcl.EvalContext) (string, errors.Error)
- func (req *Request) QueryParams(ctx *hcl.EvalContext) (map[string][]string, errors.Error)
- func (req *Request) SetBaseURL(expr hcl.Expression)
- func (req *Request) SetPath(expr hcl.Expression)
- type Response
Constants ¶
View Source
const ( BlockHTTP = "http" BlockHeaders = "headers" BlockHeader = "header" AttBaseURL = "baseUrl" AttTimeout = "timeout" LabelName = "name" LabelType = "type" AttributeValue = "value" BlockAuthBasic = "auth-basic" BlockAuthToken = "auth-token" BlockCookie = "cookie" AttributeName = "name" AttributeBasURL = "baseUrl" AttributePath = "path" AttributeDomain = "domain" BlockConnection = "connection" AttributeTimeout = "timeout" AttributeProxy = "Proxy" BlockPayload = "payload" AttributeData = "data" BlockQueryParams = "queryParams" BlockQueryParam = "queryParam" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) SetProxy ¶
func (c *Connection) SetProxy(expr hcl.Expression)
func (*Connection) SetTimeout ¶
func (c *Connection) SetTimeout(expr hcl.Expression)
type QueryParams ¶
type QueryParams map[string]hcl.Expression
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func DecodeRequest ¶
func (*Request) AddHeaders ¶
func (*Request) AddQueryParams ¶
func (*Request) Connection ¶
func (req *Request) Connection(ctx *hcl.EvalContext) (*executor.Connection, errors.Error)
func (*Request) QueryParams ¶
func (*Request) SetBaseURL ¶
func (req *Request) SetBaseURL(expr hcl.Expression)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func DecodeResponse ¶
Click to show internal directories.
Click to hide internal directories.