Show / Hide Table of Contents

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".
Inheritance
object
HttpResponseBody
DynamicHttpResponseBody
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

In this article
Back to top