HttpRequestParserTest

6

tests

0

failures

0

ignored

0.104s

duration

100%

successful

Tests

Test Method name Duration Result
복잡한 쿼리 스트링과 바디를 함께 파싱해야 한다 parse_complexRequest() 0.003s passed
GET 요청의 요청 라인, 쿼리 파라미터, 빈 바디를 올바르게 파싱해야 한다 parse_getRequestBody() 0.003s passed
헤더와 바디 구분자가 LF만 있는 경우에도 올바르게 파싱해야 한다 parse_lfOnlyDelimiter() 0.003s passed
바디가 없는 요청을 올바르게 파싱해야 한다 (CRLF 없는 경우) parse_noBodyNoCrLf() 0.002s passed
POST 요청의 요청 라인, 빈 쿼리 파라미터, JSON 바디를 올바르게 파싱해야 한다 parse_postRequestWithJsonBody() 0.003s passed
요청 라인만 있고 헤더나 바디가 없는 경우에도 올바르게 파싱해야 한다 parse_requestLineOnly() 0.090s passed

Standard output

GET /simple HTTP/1.1
POST /users HTTP/1.1
Content-Type: application/json
Content-Length: 29

{"name":"testuser", "age":30}
PUT /items HTTP/1.1
Content-Type: application/json
Content-Length: 15

{"data":"test"}
DELETE /resource/123 HTTP/1.1
Host: example.com
Connection: close
PATCH /orders/123?userId=abc&status=pending HTTP/1.1
Content-Type: application/json
Authorization: Bearer token123
Content-Length: 31

{"item":"laptop", "quantity":1}
GET /path/to/resource?param1=value1&param2=value2 HTTP/1.1
Host: localhost:8080
Connection: keep-alive
User-Agent: Mozilla/5.0