Interface

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 HttpRequestConfig

Properties

NameTypeDescription
url stringURL 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 :key placeholders in the URL. Values are expressions evaluated by ExpressionParser against the current EvaluationContext.

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 body are treated as expressions and evaluated by ExpressionParser (shallow only — nested objects are passed through as-is).

headers ?Record<string, string>HTTP headers to include in the request