mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-29 03:00:12 +00:00
15 lines
480 B
Python
15 lines
480 B
Python
"""OpenAPI core responses models module"""
|
|
|
|
|
|
class Response(object):
|
|
|
|
def __init__(
|
|
self, http_status, description, headers=None, content=None,
|
|
links=None, extensions=None):
|
|
self.http_status = http_status
|
|
self.description = description
|
|
self.headers = headers and dict(headers) or {}
|
|
self.content = content
|
|
self.links = links and dict(links) or {}
|
|
|
|
self.extensions = extensions and dict(extensions) or {}
|