Documentation
¶
Index ¶
Constants ¶
View Source
const PreviousTripStateKey = "previous"
PreviousTripStateKey keys to store previous request details for multi trip HTTP Send request in context state
View Source
const ServiceID = "http/runner"
ServiceID represents http runner service id.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cookies ¶
Cookies represents cookie
func (*Cookies) AddCookies ¶
AddCookies adds cookies
func (*Cookies) IndexByName ¶
IndexByName index cookie by name
func (*Cookies) IndexByPosition ¶
IndexByPosition index cookie by position
type Request ¶
type Request struct { *model.Repeater When string `description:"criteria to send this request"` Method string `required:"true" description:"HTTP Method"` URL string Header http.Header Cookies Cookies Body string Replace map[string]string `description:"response body key value pair replacement"` RequestUdf string `description:"user defined function in context.state key, i,e, json to protobuf"` ResponseUdf string `description:"user defined function in context.state key, i,e, protobuf to json"` }
ServiceRequest represents an http request
type Response ¶
type Response struct { //ServiceRequest *ServiceRequest Code int Header http.Header Cookies map[string]*http.Cookie Body string JSONBody map[string]interface{} `description:"structure data if Body was JSON"` TimeTakenMs int Error string }
Response represents Http response
type SendRequest ¶
type SendRequest struct { Options []*toolbox.HttpOptions `` /* 201-byte string literal not displayed */ Requests []*Request Expect interface{} `description:"If specified it will validated response as actual"` }
SendRequest represents a send http request.
type SendResponse ¶
type SendResponse struct { Responses []*Response Data data.Map Assert *validator.AssertResponse }
SendResponse represnets a send response
Click to show internal directories.
Click to hide internal directories.