-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Issue**: `aws_hpack_context` did too many things and was difficult to understand. **Description of changes:** Sorry, this looks like a lot of new code, but mostly just moving stuff around. Changes are: - Split `aws_hpack_context` (hpack.c) into 3 classes: - `aws_hpack_context` (hpack.c) - Still handles dynamic and static table logic. - `aws_hpack_encoder` (hpack_encoder.c) - Handles encoding of outgoing headers (contains an `aws_hpack_context`) - `aws_hpack_decoder` (hpack_encoder.c) - Handles decoding of incoming headers (contains an `aws_hpack_context`) - These structs are now `init()/clean_up()` by-value structs, they used to be `new()/delete()` heap-only structs. - This avoids an unnecessary allocation (total of 4 per HTTP connection) - These are package-private structs so don't really care that their internals are visible.
- Loading branch information
Showing
10 changed files
with
1,212 additions
and
1,173 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.