-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edge-http: make fields in {Req,Resp}Headers non-optional (#37)
* edge-http: make fields in {Req,Resp}Headers non-optional Ensures that the {Req,Resp}Headers is always complete and adheres to the HTTP spec. Saves a lot code from dealing with `Option`s. Also, `send_status_line` is removed, and inlined into `send_request` and `send_status`. * Fix is_upgrade_request * Let receive be a method, rather than a constructor function * Add inline attribute to default * Restore the const constructor `new()` and call it in the library
- Loading branch information
1 parent
71810bd
commit 997b76f
Showing
6 changed files
with
113 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.