Class Response
- Namespace
- Cloudflare.NET.Security.Rulesets.Models
- Assembly
- Cloudflare.NET.dll
Defines a custom HTTP response for a rule action.
public record Response : IEquatable<Response>
- Inheritance
-
Response
- Implements
- Inherited Members
Constructors
Response(int, string?, string?)
Defines a custom HTTP response for a rule action.
public Response(int StatusCode, string? Content = null, string? ContentType = null)
Parameters
StatusCodeintThe HTTP status code.
ContentstringThe body of the response.
ContentTypestringThe content type of the response.
Properties
Content
The body of the response.
[JsonPropertyName("content")]
public string? Content { get; init; }
Property Value
ContentType
The content type of the response.
[JsonPropertyName("content_type")]
public string? ContentType { get; init; }
Property Value
StatusCode
The HTTP status code.
[JsonPropertyName("status_code")]
public int StatusCode { get; init; }