Skip to content

Commit 72117d0

Browse files
committed
add abort signal to requestcontext
1 parent 4379a23 commit 72117d0

4,477 files changed

Lines changed: 427527 additions & 386318 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/src/main/resources/typescript/http/http.mustache

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class RequestContext {
8686
private headers: Headers = {};
8787
private body: RequestBody = undefined;
8888
private url: URL;
89+
private signal: AbortSignal | undefined = undefined;
8990
{{#platforms}}
9091
{{#node}}
9192
private agent: http.Agent | https.Agent | undefined = undefined;
@@ -167,6 +168,15 @@ export class RequestContext {
167168
public setHeaderParam(key: string, value: string): void {
168169
this.headers[key] = value;
169170
}
171+
172+
public setSignal(signal: AbortSignal): void {
173+
this.signal = signal;
174+
}
175+
176+
public getSignal(): AbortSignal | undefined {
177+
return this.signal;
178+
}
179+
170180
{{#platforms}}
171181
{{#node}}
172182

modules/openapi-generator/src/main/resources/typescript/http/isomorphic-fetch.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary {
1919
method: method,
2020
body: body as any,
2121
headers: request.getHeaders(),
22+
signal: request.getSignal(),
2223
{{#platforms}}
2324
{{#node}}
2425
agent: request.getAgent(),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.14.0-SNAPSHOT
1+
7.12.0-SNAPSHOT

samples/client/echo_api/csharp/restsharp/net8/EchoApi/README.md

Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.14.0-SNAPSHOT
1+
7.12.0-SNAPSHOT

samples/client/echo_api/go-external-refs/README.md

Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.14.0-SNAPSHOT
1+
7.12.0-SNAPSHOT

samples/client/echo_api/go/README.md

Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.14.0-SNAPSHOT
1+
7.12.0-SNAPSHOT

samples/client/others/c/bearerAuth/README.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)