class documentation
Tests for HTTPRequestWrappingIRequest
.
Method | legacy |
Undocumented |
Method | test_body |
HTTPRequestWrappingIRequest.bodyAsBytes matches the underlying legacy request body. |
Async Method | test_body |
HTTPRequestWrappingIRequest.bodyAsBytes called twice returns the same object both times. |
Method | test_body |
HTTPRequestWrappingIRequest.bodyAsFount raises FountAlreadyAccessedError if called more than once. |
Method | test |
HTTPRequestWrappingIRequest.headers returns an HTTPRequestWrappingIRequest containing the underlying legacy request headers. |
Method | test |
HTTPRequestWrappingIRequest implements IHTTPRequest . |
Method | test |
HTTPRequestWrappingIRequest.method matches the underlying legacy request method. |
Method | test |
HTTPRequestWrappingIRequest.uri matches the underlying legacy request URI. |
Inherited from TestCase
:
Method | assert |
Assert that a object provides an interface. |
def legacyRequest(self, path=b'/', method=b'GET', host=b'localhost', port=8080, isSecure=False, body=b'', headers=emptyMapping):
(source)
HTTPRequestWrappingIRequest.bodyAsBytes
matches the underlying legacy request body.
Parameters | |
data:bytes | Undocumented |
HTTPRequestWrappingIRequest.headers
returns an HTTPRequestWrappingIRequest
containing the underlying legacy request headers.
HTTPRequestWrappingIRequest.method
matches the underlying legacy request method.
Parameters | |
methodstr | Undocumented |
HTTPRequestWrappingIRequest.uri
matches the underlying legacy request URI.
Parameters | |
url:DecodedURL | Undocumented |