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

リクエストラインがパースできる #3

Closed
no-yan opened this issue Sep 29, 2023 · 2 comments
Closed

リクエストラインがパースできる #3

no-yan opened this issue Sep 29, 2023 · 2 comments

Comments

@no-yan
Copy link
Owner

no-yan commented Sep 29, 2023

リクエストライン(リクエストの最初のライン)をパースできるようにする。
これにより、メソッド、リクエスト対象、HTTP-versionがわかるようになる。

A request-line begins with a method token, followed by a single space (SP), the request-target, and another single space (SP), and ends with the protocol version.

request-line = method SP request-target SP HTTP-version

https://datatracker.ietf.org/doc/html/rfc9112#name-request-line

@no-yan
Copy link
Owner Author

no-yan commented Sep 29, 2023

partially resolves #2

@no-yan
Copy link
Owner Author

no-yan commented Sep 29, 2023

HTTP 1.1であることを前提に書いた

b3804af

プロトコルがHTTP1.0, 2.0やHTTP以外の場合を想定していない。
リクエストラインのセパレータはホワイトスペースではない可能性もあるかもしれない(未調査)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant