Documentation
¶
Index ¶
Constants ¶
View Source
const ( ComponentName = "http_client" RequestPort = "request" ResponsePort = "response" ErrorPort = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) GetInfo ¶
func (h *Component) GetInfo() module.ComponentInfo
type Error ¶
type Error struct {
Context Context `json:"context" configurable:"true" required:"true" title:"Context" description:"Message to be sent further"`
Response ResponseResponse `json:"response"`
Error string `json:"error" required:"true"`
}
type Request ¶
type Request struct {
Context Context `json:"context,omitempty" configurable:"true" title:"Context" description:"Message to be sent further"`
Method string `` /* 137-byte string literal not displayed */
Timeout int `json:"timeout" required:"true" title:"Request Timeout" colSpan:"col-span-6"`
URL string `json:"url" required:"true" title:"URL" format:"uri"`
Headers []etc.Header `json:"headers,omitempty" title:"Headers"`
ContentType etc.ContentType `json:"contentType" title:"Request Content Type" required:"true"`
Body string `json:"body" title:"Request Body" format:"textarea"`
}
type Response ¶
type Response struct {
Context Context `json:"context" configurable:"true" required:"true" title:"Context" description:"Message to be sent further"`
Response ResponseResponse `json:"response" title:"Response" required:"true" description:"HTTP Response"`
}
type ResponseResponse ¶
Click to show internal directories.
Click to hide internal directories.