Module Values.TimeoutConfigurationSource

An object that represents the timeout configurations for Service Connect. If idleTimeout is set to a time that is less than perRequestTimeout, the connection will close when the idleTimeout is reached and not the perRequestTimeout.

Sourcetype nonrec t = {
  1. idleTimeoutSeconds : Duration.t option;
    (*

    The amount of time in seconds a connection will stay active while idle. A value of 0 can be set to disable idleTimeout. The idleTimeout default for HTTP/HTTP2/GRPC is 5 minutes. The idleTimeout default for TCP is 1 hour.

    *)
  2. perRequestTimeoutSeconds : Duration.t option;
    (*

    The amount of time waiting for the upstream to respond with a complete response per request. A value of 0 can be set to disable perRequestTimeout. perRequestTimeout can only be set if Service Connect appProtocol isn't TCP. Only idleTimeout is allowed for TCP appProtocol.

    *)
}
Sourceval make : ?idleTimeoutSeconds:??? -> ?perRequestTimeoutSeconds:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of Duration.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