Skip to content
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

feat: customHeaderFunction to dynamic setting headers #152

Merged
merged 2 commits into from
Nov 3, 2019

Conversation

SecretBase
Copy link
Contributor

Resolve #151

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 97.483% when pulling 859b0df on SecretBase:master into 477eb4a on Unleash:master.

@@ -126,7 +135,7 @@ export default class Metrics extends EventEmitter {
return true;
}

sendMetrics(): boolean {
async sendMetrics(): Promise<boolean> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making this return a Promsie would that not require the calling method to await it to make sure it actually is executed?

(this.sendMetrics(); on line 79).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm; this is not a requirement i javascript

@@ -93,19 +97,24 @@ export default class Metrics extends EventEmitter {
this.disabled = true;
}

registerInstance(): boolean {
async registerInstance(): Promise<boolean> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calls to this method should now be awaiting the response.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm; this is not a requirement i javascript

@ivarconr ivarconr changed the title Feature: customHeaderFunction to dynamic setting headers feat: customHeaderFunction to dynamic setting headers Nov 3, 2019
@ivarconr ivarconr merged commit b3d5691 into Unleash:master Nov 3, 2019
@ivarconr
Copy link
Member

ivarconr commented Nov 3, 2019

released as part of 3.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for setting headers dynamically
3 participants