Function StackUtility
External API Request
Access and process an external HTTP endpoint.
Configuration
- URL: the target endpoint to call
- Method: HTTP method to use (e.g., GET, POST)
- Query Parameters: optional query parameters — defaults to an empty
Map[string, any]
- Headers: optional headers — defaults to an empty
Map[string, any]
- Body: optional request body (typically for POST, PUT)
- Follow Location: whether to follow HTTP redirects
- Timeout: maximum time to wait for a response
- Response Type: define the custom response type expected from the API
Output
Returns a Result<HttpResponse>
where the Result
field matches the custom type you defined.