Request

class pyws.request.Request(tail, text, GET, POST, COOKIES)

Request objects contain request, this information is provided by adapters in the way that pyws could handle it.

__init__(tail, text, GET, POST, COOKIES)

tail is everything left from URL to which pyws server is attached. text is request text, GET, POST and COOKIES are dicts of the form {'param1': ['value1', 'value2'], ...}. SOAP protocol requires only the first two.

Response

class pyws.response.Response(text, content_type='text/plain', status=0)

Response objects are created by protocols and contain response information, adapters have to transform it into the form suitable for the application which pyws is integrated with.

STATUS_ERROR = 1

Error response status

STATUS_SUCCESS = 0

Success response status

content_type = None

Response content type

status = None

Response status

text = None

Response text

Table Of Contents

Previous topic

Server

Next topic

Protocol

This Page