HttpRequestConfig
@ng-forge/dynamic-forms
Configuration for an HTTP request used by declarative HTTP validators, derivations, and conditions.
All string values in queryParams are treated as expressions evaluated by ExpressionParser.
When evaluateBodyExpressions is true, top-level string values in body are also evaluated as expressions (shallow only).
Signature
interface HttpRequestConfigProperties
| Name | Type | Description |
|---|---|---|
url | string | URL to send the request to |
method ? | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | HTTP method. Defaults to 'GET' |
params ? | Record<string, string> | URL path parameters. Keys correspond to |
queryParams ? | Record<string, string> | Query parameters appended to the URL. Values are expressions evaluated by ExpressionParser against the current EvaluationContext. |
body ? | Record<string, unknown> | Request body (for POST/PUT/PATCH) |
evaluateBodyExpressions ? | boolean | When true, top-level string values in |
headers ? | Record<string, string> | HTTP headers to include in the request |
packages/dynamic-forms/src/lib/models/http/http-request-config.ts:7