pyrevit.routes.server.base

Utility functions and types

class pyrevit.routes.server.base.Request(path='/', method='GET', data=None, params=None)

Request wrapper object

add_header(key, value)

Add new header key:value

callback_url

Request callback url, if provided in payload

headers

Request headers dict

params

Request parameters

class pyrevit.routes.server.base.Response(status=200, data=None, headers=None)

Response wrapper object

add_header(key, value)

Add new header key:value

headers

Response headers dict