ProtectedconstructorConstructor for IncomingBrowserEvent.
The options to create an IncomingBrowserEvent instance.
ReadonlycookiesThe cookies included in the request.
ReadonlylocaleThe locale of the event.
ReadonlymetadataThe metadata associated with the event.
ReadonlymethodThe HTTP method of the request.
ReadonlyprotocolThe protocol used for the request (e.g., http or https).
ReadonlyqueryThe query parameters of the request.
Optional ReadonlyqueryThe query string of the request.
Protected OptionalrouteReadonlysourceThe source of the event.
ReadonlytimeThe timestamp of the event creation.
ReadonlytypeThe type of the event.
ReadonlyurlThe URL of the request.
Protected OptionaluserStatic ReadonlyINCOMING_The decoded pathname of the URL.
The hash part of the URL.
The host of the URL (hostname:port).
The hostname of the URL.
Whether the request was made over a secure connection.
The route parameters.
The full path including pathname and search query.
The pathname of the URL.
Get the platform of the event source.
The platform of the event source.
The protocol of the URL (e.g., "http" or "https").
The URL segments split by '/'.
The full URL as a string.
The user agent, or undefined outside a browser (SSR/tests/workers).
Return a cloned instance.
The metadata container is deep-copied (plain objects and arrays are recreated,
special values kept by reference) so that mutating the clone's metadata — e.g. via
middleware — never leaks back into the original event. This is what makes the
Kernel's originalEvent snapshot a faithful pre-middleware copy.
A cloned instance of the current class.
Generate a unique fingerprint for the event.
The generated fingerprint as a base64 string.
Get data from the request.
Priority:
The key to look for.
The value of the key or the fallback.
Get a cookie value.
The cookie name.
The cookie value or the fallback.
Get data from metadata.
The key to retrieve from metadata.
The value associated with the key or the fallback.
Retrieve a parameter from the route if it exists.
The name of the parameter to retrieve.
The value of the parameter if it exists, otherwise undefined.
Get the URI with or without the domain.
Whether to include the domain in the URI.
The URI with or without the domain.
Get the user instance.
The user object, resolved through a user resolver function if available.
Get the user resolver function.
The user resolver function.
Check if a cookie exists.
The cookie name to check.
True if the cookie exists, otherwise false.
Check if the given value is equal to the specified value.
The key to check.
The value to compare against.
True if the key's value is equal to the specified value, false otherwise.
Check if the current event method matches the given method.
The method to check.
True if the event method matches, otherwise false.
Check if the event source is from a platform.
The platform to check.
True if the event source is from the platform, false otherwise.
Add data to metadata.
The key or object to add to metadata.
Optionalvalue: unknown
The value to associate with the key.
This Event instance.
Set the user resolver function.
The user resolver function.
The current instance for method chaining.
Generate a full URL for the given path.
The path to append to the base URL.
The full URL for the given path.
StaticcreateCreate an IncomingBrowserEvent.
The IncomingBrowserEvent options.
A new instance of IncomingBrowserEvent.
Class representing an IncomingBrowserEvent.
Author
Mr. Stone evensstone@gmail.com