abstract class Application
- Application
- ActionController::Base
- Reference
- Object
Direct Known Subclasses
Defined in:
controllers/application.crConstant Summary
-
Log =
::App::Log.for("controller")
-
Configure your log source name
NOTE : this is chaining from App::Log
-
PARSER_LIST =
["application/json"]
-
RESPONDER_LIST =
["application/json"]
Instance Method Summary
-
#bad_media_type(error) : AC::Error::ContentResponse
covers no acceptable response format and not an acceptable post format
-
#invalid_param(error) : AC::Error::ParameterResponse
handles paramater missing or a bad paramater value / format
-
#resource_not_found(error) : AC::Error::CommonResponse
404 if resource not present
-
#set_cors_headers
Add CORS header to all requests so GPT chat can access the plugin
-
#set_request_id
This makes it simple to match client requests with server side logs.
Instance Method Detail
def bad_media_type(error) : AC::Error::ContentResponse
#
covers no acceptable response format and not an acceptable post format
def invalid_param(error) : AC::Error::ParameterResponse
#
handles paramater missing or a bad paramater value / format
def set_request_id
#
This makes it simple to match client requests with server side logs. When building microservices this ID should be propagated to upstream services.