Response

An abstract response

class Response.Response(trans, strmOut)

Bases: object

The abstract response class.

Response is a base class that offers the following:

  • A time stamp (indicating when the response was finished)

  • An output stream

Response is an abstract class; developers typically use HTTPResponse.

__init__(trans, strmOut)
clearTransaction()
deliver()
endTime()
isCommitted()
recordEndTime()

Record the end time of the response.

Stores the current time as the end time of the response. This should be invoked at the end of deliver(). It may also be invoked by the application for those responses that never deliver due to an error.

reset()
streamOut()
write(output)
writeExceptionReport(handler)