Module Values.ResponseStreamSource

Definition of content in the response stream.

Sourcetype nonrec t = {
  1. chunk : PayloadPart.t option;
    (*

    Content included in the response.

    *)
  2. internalServerException : InternalServerException.t option;
    (*

    An internal server error occurred. Retry your request.

    *)
  3. modelStreamErrorException : ModelStreamErrorException.t option;
    (*

    An error occurred while streaming the response. Retry your request.

    *)
  4. validationException : ValidationException.t option;
    (*

    Input validation failed. Check your request parameters and retry the request.

    *)
  5. throttlingException : ThrottlingException.t option;
    (*

    Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process.

    *)
  6. modelTimeoutException : ModelTimeoutException.t option;
    (*

    The request took too long to process. Processing time exceeded the model timeout length.

    *)
  7. serviceUnavailableException : ServiceUnavailableException.t option;
    (*

    The service isn't available. Try again later.

    *)
}
Sourceval make : ?chunk:??? -> ?internalServerException:??? -> ?modelStreamErrorException:??? -> ?validationException:??? -> ?throttlingException:??? -> ?modelTimeoutException:??? -> ?serviceUnavailableException:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Blob of PartBody.t | `Integer of StatusCode.t | `String of NonBlankString.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