Kube_test.TransportSourcetype request = {meth : Kube.Http.meth;target : string;headers : (string * string) list;body : string option;streaming : bool;max_body_bytes : int option;}A captured request after authentication and before HTTP framing.
val respond :
?status:int ->
?reason:string ->
?headers:(string * string) list ->
string ->
outcomeReturn one buffered response body. When the client requested streaming, a successful body is delivered as one callback chunk.
val respond_json :
?status:int ->
?reason:string ->
?headers:(string * string) list ->
Yojson.Safe.t ->
outcomeval stream :
?status:int ->
?reason:string ->
?headers:(string * string) list ->
?wait_for_cancel:bool ->
string list ->
outcomeDeliver distinct chunks in order. wait_for_cancel keeps the request open after the chunks and is useful for reflectors and controller tests. It requires the client request to carry a cancellation token.
Create a concurrent handler transport. The handler may be called from several threads and is responsible for synchronizing its own mutable state. Requests are captured safely by the testkit.
Create a FIFO transport. An extra request becomes a transport failure and is reported by verify_complete.
Check that a scripted transport consumed every outcome and received no extra requests. Handler transports are always complete.