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

Use a switch instead of String(describing:) #118

Merged
merged 1 commit into from
Dec 19, 2018

Conversation

pushkarnk
Copy link
Contributor

The NIOHTTP1.HTTPMethod enumeration does not have String as the raw value. We've used String(describing:) to get the String representation of an HTTPMethod value. Because this seems to be considerably expensive, compared to a simple switch statement, we could be using the latter instead.

The NIOHTTP1.HTTPMethod enumeration does not have String as the raw value. We've used `String(describing:)` to get the String representation of an HTTPMethod value. Because this seems to be considerably expensive, compared to a simple switch statement, we could be using the latter instead.
@pushkarnk pushkarnk merged commit 710d459 into Kitura:master Dec 19, 2018
@pushkarnk pushkarnk deleted the method-string branch May 26, 2020 07:48
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.

1 participant