()
| 724 | } |
| 725 | |
| 726 | function TEST_setHttpBody() { |
| 727 | const examplePayload = "GET / HTTP/1.1\r\nUser-Agent: Node\r\nContent-Length: 5\r\n\r\nhello"; |
| 728 | let p = setHttpBody(Buffer.from(examplePayload), Buffer.from("hello, world!")); |
| 729 | |
| 730 | if (p != "GET / HTTP/1.1\r\nUser-Agent: Node\r\nContent-Length: 13\r\n\r\nhello, world!") { |
| 731 | fail(`Wrong body: '${p}'`) |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | function TEST_httpCookie() { |
| 736 | const examplePayload = "GET / HTTP/1.1\r\nCookie: a=b; test=zxc\r\n\r\n"; |
nothing calls this directly
no test coverage detected