NAME
Kernel::WebApp::Plugin::0000InternalRequests – Extensions for Mojo::Message.
PUBLIC INTERFACE
register()
Adds is_internal
and internal_json_payload
attributes to Mojo::Message, indicating that the current transaction an internal request from the REST over websocket
handler "DispatchREST()" in Kernel::WebApp::Controller::Websocket. This handler will populate the is_internal
flags and the internal_json_payload
of the request object.
The current plugin installs a before_render
hook that will save the raw data into the response's internal_json_payload
field so that we don't need to decode this from the body later on.
The is_internal
flags are used furthermore for some shortcuts in processing (see plugins).