Parse HTTP request correctly #1

Closed
opened 2022-09-08 14:45:03 +02:00 by rmanach · 1 comment
rmanach commented 2022-09-08 14:45:03 +02:00 (Migrated from gitea.thegux.fr)

According the HTTP messages reference : https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages. The incoming request must be correcly parsed.

#[derive(Debug)]
pub struct HTTPRequest {
    pub start_line: HTTPStartLine,
    pub headers: HTTPHeader,
    pub body: HTTPBody
}

NOTE:

  • be simple, Lexer implementation is not worth it
  • HTTPHeader parsing can be done later
According the HTTP messages reference : https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages. The incoming request must be correcly parsed. ```rust #[derive(Debug)] pub struct HTTPRequest { pub start_line: HTTPStartLine, pub headers: HTTPHeader, pub body: HTTPBody } ``` **NOTE**: * be simple, Lexer implementation is not worth it * HTTPHeader parsing can be done later
rmanach commented 2022-09-14 19:03:26 +02:00 (Migrated from gitea.thegux.fr)

#3 done, more tests can be added before to close the issue

#3 done, more tests can be added before to close the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rmanach/simple-auth#1
No description provided.