Documentation ¶
Index ¶
Constants ¶
View Source
const ProviderName = "http"
ProviderName .
Variables ¶
View Source
var Package = runtime.Must(cuexruntime.NewInternalPackage(ProviderName, template, map[string]cuexruntime.ProviderFn{ "do": cuexruntime.GenericProviderFn[DoParams, DoReturns](Do), }))
Package .
Functions ¶
This section is empty.
Types ¶
type DoReturns ¶
type DoReturns providers.Returns[ResponseVars]
DoReturns returned struct for http response
type RequestVars ¶
type RequestVars struct { Method string `json:"method"` URL string `json:"url"` Request struct { Body string `json:"body"` Header http.Header `json:"header"` Trailer http.Header `json:"trailer"` } `json:"request"` }
RequestVars is the vars for http request TODO: support timeout & tls
Click to show internal directories.
Click to hide internal directories.