RequestWatcher
class RequestWatcher extends Watcher
Properties
| protected EntriesRepository|null | $entriesRepository | The entries repository. |
Methods
Determine if the request should be ignored based on its method.
Determine if the request should be ignored based on its status code.
Format the given headers.
Format the given payload.
Hide the given parameters.
Format the given response object.
Determine if the content is within the set limits.
Get the current facade context for the request.
Get the coroutine context data for the request.
Details
in
Watcher at line 16
__construct(array $options = [])
Create a new watcher instance.
at line 37
void
register(Application $app)
Register the watcher.
at line 48
void
recordRequest(RequestHandled $event)
Record an incoming HTTP request.
at line 84
protected bool
shouldIgnoreHttpMethod(RequestHandled $event)
Determine if the request should be ignored based on its method.
at line 97
protected bool
shouldIgnoreStatusCode(RequestHandled $event)
Determine if the request should be ignored based on its status code.
at line 108
protected array
headers(array $headers)
Format the given headers.
at line 123
protected array|string
payload(array|string $payload)
Format the given payload.
at line 138
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
at line 181
protected array|string
response(Response $response)
Format the given response object.
at line 220
bool
contentWithinLimits(string $content)
Determine if the content is within the set limits.
at line 230
protected array
extractDataFromView(View $view)
Extract the data from the given view in array form.
at line 255
protected array|null
facadeContext()
Get the current facade context for the request.
Returns both visible and hidden context. Returns null when no context exists to avoid showing an empty tab.
at line 278
protected array
getContext()
Get the coroutine context data for the request.