Parsing string with multiple HTTP requests
- Dominant language
- C
- Stars
- 345
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the example through execute(), then inspect how get_headers() and get_url() handle a string containing multiple HTTP requests separated by "\r\n\r\n". Determine and document the expected behavior for multiple requests, including whether both requests should be parsed and how the returned headers and URL should be represented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, python
- Domain
- api, backend
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100