Class DynamicHttpResponseBody
Allows returning dynamically generated HTTP response body based on the provided template.
The template allows variable interpolation by specifying variable name between the '${' and '}' delimiters.
Escape sequences using '\' are supported to allow usage of '\\' and '\${' in the template to return '\' and '\${' in final response.
The following variables are supported:
- http.request.id - the HTTP request ID. For Example: "d5fa953f75ef417e4c8008ef9336d779".
Inherited Members
Namespace: Oci.WafService.Models
Assembly: OCI.DotNetSDK.Waf.dll
Syntax
public class DynamicHttpResponseBody : HttpResponseBody
Properties
Template
Declaration
[Required(ErrorMessage = "Template is required.")]
[JsonProperty(PropertyName = "template")]
public string Template { get; set; }
Property Value
Type | Description |
---|---|
string | Dynamic response body |
Remarks
Required