Module Values.TestInvokeMethodResponseSource

Represents the response of the test invoke request in the HTTP method.

Sourcetype nonrec t = {
  1. status : Integer.t option;
    (*

    The HTTP status code.

    *)
  2. body : String_.t option;
    (*

    The body of the HTTP response.

    *)
  3. headers : MapOfStringToString.t option;
    (*

    The headers of the HTTP response.

    *)
  4. multiValueHeaders : MapOfStringToList.t option;
    (*

    The headers of the HTTP response as a map from string to list of values.

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

    The API Gateway execution log for the test invoke request.

    *)
  6. latency : Long.t option;
    (*

    The execution latency, in ms, of the test invoke request.

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `NotFoundException of NotFoundException.t
  3. | `TooManyRequestsException of TooManyRequestsException.t
  4. | `UnauthorizedException of UnauthorizedException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?status:??? -> ?body:??? -> ?headers:??? -> ?multiValueHeaders:??? -> ?log:??? -> ?latency:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of Integer.t | `Long of Long.t | `Map of ([> `String of String_.t ] * [> `List of [> `String of String_.t ] list | `String of String_.t ]) list | `String of String_.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