Module Values.CustomRuleSource

Describes a custom rewrite or redirect rule.

Sourcetype nonrec t = {
  1. source : Source.t;
    (*

    The source pattern for a URL rewrite or redirect rule.

    *)
  2. target : Target.t;
    (*

    The target pattern for a URL rewrite or redirect rule.

    *)
  3. status : Status.t option;
    (*

    The status code for a URL rewrite or redirect rule. 200 Represents a 200 rewrite rule. 301 Represents a 301 (moved permanently) redirect rule. This and all future requests should be directed to the target URL. 302 Represents a 302 temporary redirect rule. 404 Represents a 404 redirect rule. 404-200 Represents a 404 rewrite rule.

    *)
  4. condition : Condition.t option;
    (*

    The condition for a URL rewrite or redirect rule, such as a country code.

    *)
}
Sourceval context_ : string
Sourceval make : ?status:??? -> ?condition:??? -> source:Source.t -> target:Target.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of Source.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