mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-17 00:52:09 +02:00
Say on send() that an unsaved response's body is call-scoped
This commit is contained in:
@@ -152,6 +152,15 @@ export interface Context {
|
||||
render(args: RenderGrpcRequestRequest): Promise<RenderGrpcRequestResponse["grpcRequest"]>;
|
||||
};
|
||||
httpRequest: {
|
||||
/**
|
||||
* Send a request and wait for the response.
|
||||
*
|
||||
* A request with an id is saved, and its body can be read back by response
|
||||
* id whenever you like. A request without one is not: it is sent, the
|
||||
* response comes back, and nothing keeps it. Read that body with
|
||||
* `ctx.httpResponse.body()` before returning — it is only there for the
|
||||
* rest of this call.
|
||||
*/
|
||||
send(args: SendHttpRequestRequest): Promise<SendHttpRequestResponse["httpResponse"]>;
|
||||
getById(args: GetHttpRequestByIdRequest): Promise<GetHttpRequestByIdResponse["httpRequest"]>;
|
||||
render(args: RenderHttpRequestRequest): Promise<RenderHttpRequestResponse["httpRequest"]>;
|
||||
|
||||
Reference in New Issue
Block a user