Class ReturnHttpResponseAction
An object that represents an action which returns a defined HTTP response.
Inherited Members
Namespace: Oci.WafService.Models
Assembly: OCI.DotNetSDK.Waf.dll
Syntax
public class ReturnHttpResponseAction : Action
Properties
Body
Declaration
[JsonProperty(PropertyName = "body")]
public HttpResponseBody Body { get; set; }
Property Value
Type | Description |
---|---|
HttpResponseBody |
Code
Declaration
[Required(ErrorMessage = "Code is required.")]
[JsonProperty(PropertyName = "code")]
public int? Code { get; set; }
Property Value
Type | Description |
---|---|
int? | Response code.
|
Remarks
Required
Headers
Declaration
[JsonProperty(PropertyName = "headers")]
public List<ResponseHeader> Headers { get; set; }
Property Value
Type | Description |
---|---|
List<ResponseHeader> | Adds headers defined in this array for HTTP response.
|