base
Utility functions and types.
Attributes
DEFAULT_SOURCE = 'pyrevit.routes'
module-attribute
Classes
Request(path='/', method='GET', data=None, params=None)
Bases: object
Request wrapper object.
Source code in pyrevitlib/pyrevit/routes/server/base.py
Attributes
path = path
instance-attribute
method = method
instance-attribute
data = data
instance-attribute
headers
property
Request headers dict.
params
property
Request parameters.
callback_url
property
Request callback url, if provided in payload.
Functions
Response(status=200, data=None, headers=None)
Bases: object
Response wrapper object.
Source code in pyrevitlib/pyrevit/routes/server/base.py
Attributes
status = status
instance-attribute
data = data
instance-attribute
headers
property
Response headers dict.