Class StaticTextHttpResponseBody
Allows returning static text as HTTP response body. Example: { "type": "STATIC_TEXT", "text": "{\ \"code\": 403,\ \"message\":\"Unauthorised\"}"}
Inherited Members
Namespace: Oci.WafService.Models
Assembly: OCI.DotNetSDK.Waf.dll
Syntax
public class StaticTextHttpResponseBody : HttpResponseBody
Properties
Text
Declaration
[Required(ErrorMessage = "Text is required.")]
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string | Static response body text. |
Remarks
Required