swaggerconformance.response module

A response received to a Swagger API operation.

class swaggerconformance.response.Response(raw_response)[source]

Bases: object

A response received to a Swagger API operation.

Parameters:raw_response (pyswagger.io.Response) – The raw response.
body

Parsed response body converted to objects via the codec in use.

headers

HTTP headers received on the response.

Example format is {'Content-Type': [xxx, xxx]}

Header field names are case insensitive (See http://www.ietf.org/rfc/rfc2616.txt)

Return type:dict(str, list(str))
raw

Raw response body.

Return type:bytes
status

HTTP status code of the response.

Return type:int