Skip to content

4ydx/httplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Http request parser

Rust

This is rudimentary.

The high level idea is:

  1. Create a new Request object.
  2. Receive streaming HTTP request data from some external source.
  3. As the data comes in, call request.update, passing in streamed data.

Eventually all of the data (D) will be fed into request.update(D) then:

  1. request.body_complete() will return true.
  2. request.body() will return the body captured based on the content-length header.

rather random notes

https://en.wikipedia.org/wiki/HTTP_persistent_connection
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect
https://sookocheff.com/post/networking/how-do-websockets-work/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages