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" | undefinedHTTP method. Defaults to 'GET'
params ?Record<string, string> | undefined

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> | undefined

Query parameters appended to the URL. Values are expressions evaluated by ExpressionParser against the current EvaluationContext.

body ?Record<string, unknown> | undefinedRequest body (for POST/PUT/PATCH)
evaluateBodyExpressions ?boolean | undefined

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> | undefinedHTTP headers to include in the request