Module Values.RuleTransformSource

Information about a transform to apply to requests that match a rule. Transforms are applied to requests before they are sent to targets.

Sourcetype nonrec t = {
  1. type_ : TransformTypeEnum.t;
    (*

    The type of transform. host-header-rewrite - Rewrite the host header. url-rewrite - Rewrite the request URL.

    *)
  2. hostHeaderRewriteConfig : HostHeaderRewriteConfig.t option;
    (*

    Information about a host header rewrite transform. This transform modifies the host header in an HTTP request. Specify only when Type is host-header-rewrite.

    *)
  3. urlRewriteConfig : UrlRewriteConfig.t option;
    (*

    Information about a URL rewrite transform. This transform modifies the request URL. Specify only when Type is url-rewrite.

    *)
}
Sourceval context_ : string
Sourceval make : ?hostHeaderRewriteConfig:??? -> ?urlRewriteConfig:??? -> type_:TransformTypeEnum.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `List of [> `Structure of (string * [> `String of StringValue.t ]) list ] list ]) list ]) 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