Alumna::RuleContext
Constructors
new(app : App, service : Service, path : String, method : ServiceMethod, phase : RulePhase, params : Http::ParamsView, headers : Http::HeadersView, http_method : String = "GET", remote_ip : String = "", provider : String = "rest", id : String | Nil = nil, data : Hash(String, AnyData) = {} of String => AnyData, store : Hash(String, StoreType) | Nil = nil)
SourceInstance methods
app
Sourcecall(path : String, method : ServiceMethod | Symbol, data : Hash(String, AnyData) = {} of String => AnyData, params : Hash(String, String) | Nil = nil, id : String | Nil = nil, store : Hash(String, StoreType) | Nil = nil) : Tuple(ServiceResult, ServiceError | Nil)
Dispatches a request to another internal service, bypassing the HTTP network stack. Dynamically resolves paths (e.g., "/users/123") and isolates query params by default.
data
Sourceerror
Sourceerror=(error : ServiceError | Nil)
Sourceheaders
Sourceheaders=(headers : Http::HeadersView)
Sourcehttp
Sourcehttp=(http : HttpOverrides)
Sourcehttp_method
Sourceid
Sourcemethod
Sourceparams
Sourceparams=(params : Http::ParamsView)
Sourcepath
Sourcephase
Sourceprovider
Sourcequery
Sourceremote_ip
Sourceresult
Sourceresult=(value : ServiceResult)
Sourceresult_set?
Sourceservice
Sourcestore
Source