RequestWatcher
class RequestWatcher extends Watcher
Properties
| protected EntriesRepository|null | $entriesRepository | The entries repository. |
Methods
Hide query credentials without changing unrelated URL bytes.
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.
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 18
__construct(array $options = [])
Create a new watcher instance.
at line 39
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
in
Watcher at line 55
protected string
hideQueryParameters(string $uri)
Hide query credentials without changing unrelated URL bytes.
at line 50
void
recordRequest(RequestHandled $event)
Record an incoming HTTP request.
at line 88
protected bool
shouldIgnoreHttpMethod(RequestHandled $event)
Determine if the request should be ignored based on its method.
at line 102
protected bool
shouldIgnoreStatusCode(RequestHandled $event)
Determine if the request should be ignored based on its status code.
at line 114
protected array
headers(array $headers)
Format the given headers.
at line 135
protected array|string
payload(array|string $payload)
Format the given payload.
at line 189
protected array|string
response(Response $response)
Format the given response object.
at line 240
bool
contentWithinLimits(string $content)
Determine if the content is within the set limits.
at line 250
protected array
extractDataFromView(View $view)
Extract the data from the given view in array form.
at line 276
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 299
protected array
getContext()
Get the coroutine context data for the request.