| addHeader($name, $value) | aMessage | Append a value to a header, keeping any value(s) already set (as opposed to setHeader, which replaces). |
| AddListener($handler, $order) | aMessage | Register a listener directly (as opposed to ConnectListeners's attribute-based discovery). |
| ConnectListeners($obj) | aMessage | Scan $obj's methods for #[Listen(EventClass::class)] attributes and register each one as a listener on the matching event class. |
| debugName() | aRequest | |
| DisconnectListeners($obj) | aMessage | Undo a previous ConnectListeners: removes every listener that connect had registered for $obj on this event class. |
| dispatch() | aMessage | Invoke every GetListeners listener with $this. |
| getAttribute($name, $default) | aRequest | Retrieve a single derived request attribute. |
| getAttributes() | aRequest | Retrieve attributes derived from the request. |
| getCharset() | aMessage | |
| getContentExtension() | aMessage | |
| getContentType($single) | aMessage | |
| getHeader($name) | aRequest | |
| getHeaderLine($name) | aMessage | Retrieves a comma-separated string of the values for a single header. |
| getHeaders() | aMessage | Retrieves all message header values. |
| GetListeners() | aMessage | Collect every listener for this class, including those registered on its parent classes (so a subclass event is also caught by listeners of its parent event), sorted by ascending $order (ties keep … |
| getOrigin() | aMessage | Get origin of the request by looking at 'Origin', then 'Referer', then 'Sender' in the request's headers. |
| getParsedBody() | aRequest | Retrieve any parameters provided in the request body. |
| getProtocolVersion() | aMessage | Retrieves the HTTP protocol version as a string. |
| getRequestTarget() | aRequest | Retrieves the message's request target. |
| getServerParams() | aRequest | Retrieve server parameters. |
| getUri($mutable) | aRequest | Retrieves the URI instance. |
| getUserAgent() | aMessage | |
| hasHeader($name) | aRequest | |
| HasListener($handler) | aMessage | |
| HeaderName($name) | aRequest | The name of the header php's $_SERVER calls $name -- the way a web server hands php a request's headers: HTTP_X_CSRF_TOKEN is X-Csrf-Token, CONTENT_TYPE is Content-Type. |
| isHTML() | aMessage | |
| isIe() | aMessage | |
| isIphone() | aMessage | |
| isJSON() | aMessage | |
| isMac() | aMessage | |
| isMobile() | aMessage | |
| isWindows() | aMessage | |
| RemoveListener($handler) | aMessage | Remove the last added handler from the listeners. |
| Send($args) | aMessage | Construct a new instance of this class with $args, then dispatch it to every listener. |
| setCacheControl($cache, $pragma) | aMessage | Set the Cache-Control header (and, optionally, the legacy Pragma header alongside it). |
| setContentType($type, $charset) | aMessage | Set the Content-Type header, appending a charset parameter (unless $charset is null/empty). |
| setExpires($time) | aMessage | Set the Expires header from a unix timestamp, formatted as an RFC 7231 HTTP-date. |
| setHeader($name, $value) | aRequest | |
| SetListenerOrder($handler, $order) | aMessage | Change the order of an already-registered listener, whether added directly via AddListener or indirectly via ConnectListeners (which also stores its [$obj, $methodName] callables here). |
| setUri($uri, $preserveHost) | aRequest | |
| unsetHeader($name) | aRequest | |
| withAddedHeader($name, $value) | aMessage | Return an instance with the specified header appended with the given value. |
| withAttribute($name, $value) | aRequest | Return an instance with the specified derived request attribute. |
| withAttributes($attrs) | aRequest | Return an instance with several derived request attributes set at once (merged via |
| withCacheControl($cache, $pragma) | aMessage | Set cache control of a clone. |
| withContentType($type, $charset) | aMessage | Set content type of a clone. |
| withExpires($time) | aMessage | Set cache expire date of a clone. |
| withHeader($name, $value) | aMessage | Return an instance with the provided value replacing the specified header. |
| withHeaders($headers, $reset) | aMessage | Return a clone with every header in $headers set (through tWithHeaders::setHeader, so each value replaces any existing one for the same header name). |
| withoutAttribute($name) | aRequest | Return an instance that removes the specified derived request attribute. |
| withoutHeader($name) | aMessage | Return an instance without the specified header. |
| withParsedBody($data) | aRequest | Return an instance with the specified body parameters. |
| withProtocolVersion($version) | aMessage | Return an instance with the specified HTTP protocol version. |
| withRequestTarget($requestTarget) | aRequest | Return an instance with the specific request-target. |
| withUri($uri, $preserveHost) | aRequest | Returns an instance with the provided URI. |
| __clone() | aRequest | |