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

[REF] Check the pseudo-code before impl. the chunked #55

Open
LeaYeh opened this issue Sep 30, 2024 · 0 comments
Open

[REF] Check the pseudo-code before impl. the chunked #55

LeaYeh opened this issue Sep 30, 2024 · 0 comments
Labels
implement Need to implement

Comments

@LeaYeh
Copy link
Owner

LeaYeh commented Sep 30, 2024

4.1.3. Decoding Chunked

   length := 0
   read chunk-size, chunk-ext (if any), and CRLF
   while (chunk-size > 0) {
      read chunk-data and CRLF
      append chunk-data to decoded-body
      length := length + chunk-size
      read chunk-size, chunk-ext (if any), and CRLF
   }
   read trailer field
   while (trailer field is not empty) {
      if (trailer field is allowed to be sent in a trailer) {
          append trailer field to existing header fields
      }
      read trailer-field
   }
   Content-Length := length
   Remove "chunked" from Transfer-Encoding
   Remove Trailer from existing header fields
@LeaYeh LeaYeh added the implement Need to implement label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implement Need to implement
Projects
None yet
Development

No branches or pull requests

1 participant