-
Notifications
You must be signed in to change notification settings - Fork 125
Small README fixes #26
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
Conversation
Can one of the admins verify this patch? |
README.md
Outdated
@@ -49,8 +49,8 @@ httpClient.get(url: "https://swift.org").whenComplete { result in | |||
} | |||
``` | |||
|
|||
It is important to close client instance after use to cleanly shutdown underlying NIO ```EventLoopGroup```: | |||
``` | |||
It is important to close the client instance, either in a ```defer``` statement or class' ```deinit``` after use to cleanly shutdown underlying NIO ```EventLoopGroup```: |
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.
clean shutdown worth a bit more explanation and examples. i worry folks will read this as they are suppose to call httpClient.syncShutdown()
on deinit
//cc @weissi
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 agree with @tomerd . Also please don't recommend or mention to use a class' deinit
, that's poor style and will lead to really terrible bugs. People will still do it but at least we didn't recommend it :).
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.
😬great save!
README.md
Outdated
@@ -61,7 +61,7 @@ In this case shutdown of the client is not neccecary. | |||
|
|||
## Usage guide | |||
|
|||
Most common HTTP methods are supported out of the box. In case you need to have more control over the method, or you want to add headers or body, use ```HTTPRequest``` struct: | |||
Most common HTTP methods are supported out of the box. In case you need to have more control over the method, or you want to add headers or body, use the ```HTTPRequest``` struct: |
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.
single word quoting should be done with `
and not ```
because ```
opens a code-block which in some renderers gets its own line.
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 copied the style found elsewhere in this doc, I'll fixup 🚫
Heya folks! Friendly nudge to get this another review 🙏 |
Including an update to fixup
Timeout
andRequest
after the refactor in #10.