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

Request::respond returns a IoResult #110

Merged
merged 1 commit into from
Nov 30, 2015

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Nov 30, 2015

For the moment the respond function ignored errors.
This PR moves this responsibility to the user.

If the user wants to make sure that the response has been sent, it's now possible.
In any real-life scenario, you will probably just write let _ = request.respond(..);

This is not a breaking change, but it adds an unused result warning to the users' code.

frewsxcv added a commit that referenced this pull request Nov 30, 2015
Request::respond returns a IoResult
@frewsxcv frewsxcv merged commit f0e16cf into tiny-http:master Nov 30, 2015
@frewsxcv
Copy link
Member

Good idea!

@tomaka tomaka deleted the respond-result branch November 30, 2015 15:08
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.

None yet

2 participants