drakken.message module¶
- class drakken.message.Request(environ)¶
Bases:
object
- __init__(environ)¶
Initialize request.
- Parameters:
environ (dict) – CGI environment variables.
- class drakken.message.Response(status_code=200, text='')¶
Bases:
object
- __init__(status_code=200, text='')¶
Initialize response.
- Parameters:
status_code (int) – HTTP response status code.
text (str) – text string.
- property headers¶
Return list of header tuples.
- property json¶
Return json.
- set_cookie(**kwargs)¶
Set cookie.
- Parameters:
**kwargs – cookie dictionary. Required keys: ‘name’ and ‘value’.
- property status¶
Return HTTP status string.