Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatResponse ¶
func FormatResponse(resp *client.Response, opts FormatOptions) string
Types ¶
type FormatOptions ¶ added in v0.3.0
FormatOptions controls how a response is rendered for the model.
type HttpRequestInput ¶
type HttpRequestInput struct {
Method string `json:"method" jsonschema:"HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS"`
URL string `json:"url" jsonschema:"Full URL or relative path (if base_url configured)"`
Headers map[string]string `json:"headers,omitempty" jsonschema:"Request headers as key-value pairs"`
Body string `json:"body,omitempty" jsonschema:"Request body (typically JSON)"`
QueryParams map[string]string `json:"queryParams,omitempty" jsonschema:"Query parameters as key-value pairs"`
Timeout string `json:"timeout,omitempty" jsonschema:"Per-request timeout (e.g. 10s, 500ms)"`
FollowRedirects *bool `json:"followRedirects,omitempty" jsonschema:"Follow HTTP redirects (default: true)"`
IncludeResponseHeaders *bool `json:"includeResponseHeaders,omitempty" jsonschema:"Include response headers in output (default: false)"`
JSONFilter string `` /* 208-byte string literal not displayed */
SaveTo string `` /* 147-byte string literal not displayed */
MaxResponseBytes int64 `json:"maxResponseBytes,omitempty" jsonschema:"Per-request response size limit in bytes (overrides server default)"`
Files map[string]string `` /* 127-byte string literal not displayed */
FormFields map[string]string `json:"formFields,omitempty" jsonschema:"Text fields for multipart/form-data (mutually exclusive with body)"`
}
Click to show internal directories.
Click to hide internal directories.