Response Module Documentation

class doctor.response.Response(content, headers=None)[source]

Represents a response.

This object contains the response itself along with any additional headers that should be added and returned with the response data. An instance of this class can be returned from a logic function in order to modify response headers.

Parameters:
  • content – The data to be returned with the response.
  • headers (dict) – A dict of response headers to include with the response