benoitc / benoitc/http-parser

Parsing string with multiple HTTP requests

オープン
#65 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
C
スター
345
フォーク
94
PR マージ指標
30日以内にマージされた PR はありません

説明

Could you please clarify what the behaviour is when execute() gets passed a string with two (or even more) HTTP requests directly behind each other (seperated by "\r\n\r\n").
In my example

```
pars.get_headers()["HOST"]
```

returned the Host field of **both** requests seperated with a comma (although the hosts were the same).

Interestingly

```
pars.get_url()
```

returned just the URL of the **second** request.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず execute() を通じて例を再現し、次に get_headers() と get_url() が "\r\n\r\n" で区切られた複数の HTTP リクエストを含む文字列をどのように処理するかを調べます。複数のリクエストに対する期待される動作を特定して文書化します。これには、両方のリクエストを解析すべきかどうか、および返されるヘッダーと URL をどのように表現すべきかが含まれます。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, python
領域
api, backend
issue の種類
ドキュメント
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。