Module Values.CustomResponseBodySource

The response body to use in a custom response to a web request. This is referenced by key from CustomResponse CustomResponseBodyKey.

Sourcetype nonrec t = {
  1. contentType : ResponseContentType.t;
    (*

    The type of content in the payload that you are defining in the Content string.

    *)
  2. content : ResponseContent.t;
    (*

    The payload of the custom response. You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting. For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

    *)
}
Sourceval context_ : string
Sourceval make : contentType:ResponseContentType.t -> content:ResponseContent.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ResponseContent.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t