R.Transporttype 'a io = 'a ttype connection = connectiontype request_body = request_bodytype response_body = response_bodyval with_response :
connection ->
Awskit.Request.t ->
body:request_body ->
consume:
(Awskit.Response.t ->
response_body ->
('a, Awskit.Error.t) Stdlib.result io) ->
('a, Awskit.Error.t) Stdlib.result ioSend a request and provide the response metadata and body to consume.
The request body is owned by the runtime for the duration of one attempt. The response body is valid only inside consume; callers should scope reads with Response_body.with_reader. Callback exceptions and native cancellation must be preserved by adapters.