ironic_python_agent.api.app module¶
-
class
ironic_python_agent.api.app.
Request
(environ: WSGIEnvironment, populate_request: bool = True, shallow: bool = False)[source]¶ Bases:
werkzeug.wrappers.request.Request
,werkzeug.wrappers.json.JSONMixin
Custom request class with JSON support.
-
environ
: WSGIEnvironment¶ The WSGI environment containing HTTP headers and information from the WSGI server.
-
shallow
: bool¶ Set when creating the request object. If
True
, reading from the request body will cause aRuntimeException
. Useful to prevent modifying the stream from middleware.
-
-
ironic_python_agent.api.app.
jsonify
(value, status=200)[source]¶ Convert value to a JSON response using the custom encoder.