(cls, raw)
| 97 | |
| 98 | @classmethod |
| 99 | def parse(cls, raw): |
| 100 | request = HTTPRequest(raw) |
| 101 | return cls(method=request.command, |
| 102 | path=request.path, |
| 103 | httpVersion=request.request_version, |
| 104 | headers=request.headers, |
| 105 | postBody=request.rfile.read(), |
| 106 | comment=request.comment, |
| 107 | raw=raw) |
| 108 | |
| 109 | @property |
| 110 | def url(self): |
no test coverage detected