-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
237 middleware per procedure #388
Conversation
…nd response information.
{ | ||
const result = await this.#runner.run(fqn, version, args, headers); | ||
const result = await this.#runner.run(request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect the name of the variable to be called response.
|
||
headers.clear(); | ||
request.clearHeaders(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you clearing the request headers. We had to clear the headers in the previous setup where we reused the headers map for the response as well, but we do have a separate response object here.
|
||
get headers() { return this.#headers; } | ||
|
||
clearHeaders() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type is missing.
this.#headers.clear(); | ||
} | ||
|
||
setHeader(name: string, value: string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type is missing.
return this.#headers.get(name); | ||
} | ||
|
||
removeHeader(name: string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type is missing.
return this.#args.get(name); | ||
} | ||
|
||
removeArgument(name: string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type is missing.
|
||
get headers() { return this.#headers; } | ||
|
||
setArgument(name: string, value: unknown) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type is missing.
Fixes #237
Changes proposed in this pull request:
@MaskingTechnology/jitar