class documentation

Mix-In class for implementations of IHTTPMessage.

Class Method messageFromBytes Return a new instance of an IHTTPMessage implementation using the given bytes as the message body.
Class Method messageFromFountFromBytes Return a new instance of an IHTTPMessage implementation using a fount containing the given bytes as the message body.
Method test_bodyAsBytesFromBytes bodyAsBytes returns the same bytes given to __init__.
Method test_bodyAsBytesFromBytesCached bodyAsBytes called twice returns the same object both times, when created from bytes.
Method test_bodyAsBytesFromFount bodyAsBytes returns the bytes from the fount given to __init__.
Method test_bodyAsBytesFromFountCached bodyAsBytes called twice returns the same object both times, when created from a fount.
Method test_bodyAsFountFromBytes bodyAsFount returns a fount with the same bytes given to __init__.
Method test_bodyAsFountFromBytesTwice bodyAsFount raises FountAlreadyAccessedError if called more than once, when created from bytes.
Method test_bodyAsFountFromFount bodyAsBytes returns the bytes from the fount given to __init__.
Method test_bodyAsFountFromFountTwice bodyAsFount raises FountAlreadyAccessedError if called more than once, when created from a fount.
Method test_interface_message Message instance implements IHTTPMessage.
@classmethod
@abstractmethod
def messageFromBytes(cls, data=b''): (source)

Return a new instance of an IHTTPMessage implementation using the given bytes as the message body.

Parameters
data:bytesUndocumented
Returns
IHTTPMessageUndocumented
@classmethod
def messageFromFountFromBytes(cls, data=b''): (source)

Return a new instance of an IHTTPMessage implementation using a fount containing the given bytes as the message body.

Parameters
data:bytesUndocumented
Returns
IHTTPMessageUndocumented
@given(binary())
def test_bodyAsBytesFromBytes(self, data): (source)

bodyAsBytes returns the same bytes given to __init__.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsBytesFromBytesCached(self, data): (source)

bodyAsBytes called twice returns the same object both times, when created from bytes.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsBytesFromFount(self, data): (source)

bodyAsBytes returns the bytes from the fount given to __init__.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsBytesFromFountCached(self, data): (source)

bodyAsBytes called twice returns the same object both times, when created from a fount.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsFountFromBytes(self, data): (source)

bodyAsFount returns a fount with the same bytes given to __init__.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsFountFromBytesTwice(self, data): (source)

bodyAsFount raises FountAlreadyAccessedError if called more than once, when created from bytes.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsFountFromFount(self, data): (source)

bodyAsBytes returns the bytes from the fount given to __init__.

Parameters
data:bytesUndocumented
@given(binary())
def test_bodyAsFountFromFountTwice(self, data): (source)

bodyAsFount raises FountAlreadyAccessedError if called more than once, when created from a fount.

Parameters
data:bytesUndocumented
def test_interface_message(self): (source)

Message instance implements IHTTPMessage.