Module Values.HttpRouteMatchSource

An object that represents the requirements for a route to match HTTP requests for a virtual router.

Sourcetype nonrec t = {
  1. headers : HttpRouteHeaders.t option;
    (*

    The client request headers to match on.

    *)
  2. method_ : HttpMethod.t option;
    (*

    The client request method to match on. Specify only one.

    *)
  3. path : HttpPathMatch.t option;
    (*

    The client request path to match on.

    *)
  4. port : ListenerPort.t option;
    (*

    The port number to match on.

    *)
  5. prefix : String_.t option;
    (*

    Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.

    *)
  6. queryParameters : HttpQueryParameters.t option;
    (*

    The client request query parameters to match on.

    *)
  7. scheme : HttpScheme.t option;
    (*

    The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.

    *)
}
Sourceval make : ?headers:??? -> ?method_:??? -> ?path:??? -> ?port:??? -> ?prefix:??? -> ?queryParameters:??? -> ?scheme:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of ListenerPort.t | `List of [> `Structure of (string * [> `Boolean of Boolean.t | `String of HeaderName.t | `Structure of (string * [> `String of HeaderMatch.t | `Structure of (string * [> `Long of Long.t ]) list ]) list ]) list ] list | `String of String_.t | `Structure of (string * [> `String of HttpPathExact.t ]) 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