Library Group: transport

Generated by php build/docs/rvn-docs.php. Do not edit this file by hand.

| Symbol | Kind | Summary | @return |
| --- | --- | --- | --- |
| Raven\Lib\Transport\Redirect::redirect() | method | Sends an HTTP redirect response and immediately stops execution. | never Method never returns because redirect responses terminate execution. |
| Raven\Lib\Transport\Request::currentRequestUrl() | method | Builds the current absolute request URL from server state plus config fallbacks. | string Absolute request URL including query string when present. |
| Raven\Lib\Transport\Request::hasTrailingSlash() | method | Returns whether the current non-root request path ends with a trailing slash. | bool True when the requested path has a meaningful trailing slash. |
| Raven\Lib\Transport\Request::path() | method | Returns the current request path without its query string. | string Normalized absolute request path. |
| Raven\Lib\Transport\Request::resolveRequestHost() | method | Resolves request host from configured domain with server-host fallback. | string Valid host value, optionally including port. |
| Raven\Lib\Transport\Request::resolveRequestScheme() | method | Resolves the effective request scheme from config and server context. | string http or https. |
| Raven\Lib\Transport\Request::siteBaseUrl() | method | Returns normalized public site base URL without a forced trailing slash. | string Absolute site base URL without forced trailing slash. |
| Raven\Lib\Transport\Response::applyNoStoreHeaders() | method | Applies the shared no-store cache headers Raven uses for sensitive responses. | void |
| Raven\Lib\Transport\Response::json() | method | Emits a JSON response payload with optional no-store cache headers. | void |
| Raven\Lib\Transport\Upload::filenameUsesAllowedExtension() | method | Returns true when one filename uses any allowed extension suffix. | bool True when the filename ends in one allowed extension. |
| Raven\Lib\Transport\Upload::first() | method | Returns the first upload row from one raw $_FILES payload. | array<string, mixed>\|null First upload row, or null when no file was supplied. |
| Raven\Lib\Transport\Upload::normalize() | method | Flattens one raw $_FILES payload tree into upload rows. | array<int, array<string, mixed>> Flat upload rows ready for validation. |
| Raven\Lib\Transport\Upload::uploadErrorMessage() | method | Returns one display-safe PHP upload error message. | string Error text safe for panel/public display. |
| Raven\Lib\Transport\Upload::validateSingleUpload() | method | Validates one upload row as a completed HTTP file upload. | array{ok: bool, error?: string, upload?: array<string, mixed>, size?: int} |

Parameter Details

Raven\Lib\Transport\Redirect::redirect()

  • File: private/lib/Transport/Redirect.php
  • Params:
  • string $to Redirect target URL or root-relative path.
  • int $status HTTP redirect status code to emit with the Location header.

Raven\Lib\Transport\Request::currentRequestUrl()

  • File: private/lib/Transport/Request.php
  • Params:
  • string $configuredDomain Site domain fallback from config.
  • string $configuredProtocol Configured protocol override from config.
  • array&lt;string, mixed&gt;|null $server Optional server map; defaults to \$_SERVER\.

Raven\Lib\Transport\Request::hasTrailingSlash()

  • File: private/lib/Transport/Request.php
  • Params:
  • array&lt;string, mixed&gt;|null $server Optional server map; defaults to \$_SERVER\.

Raven\Lib\Transport\Request::path()

  • File: private/lib/Transport/Request.php
  • Params:
  • array&lt;string, mixed&gt;|null $server Optional server map; defaults to \$_SERVER\.

Raven\Lib\Transport\Request::resolveRequestHost()

  • File: private/lib/Transport/Request.php
  • Params:
  • string $configuredDomain Site domain value from config.
  • array&lt;string, mixed&gt;|null $server Optional server map; defaults to \$_SERVER\.

Raven\Lib\Transport\Request::resolveRequestScheme()

  • File: private/lib/Transport/Request.php
  • Params:
  • array&lt;string, mixed&gt;|null $server Optional server map; defaults to \$_SERVER\.
  • string $configuredProtocol Configured protocol override from config.

Raven\Lib\Transport\Request::siteBaseUrl()

  • File: private/lib/Transport/Request.php
  • Params:
  • string $configuredDomain Site domain fallback from config.
  • string $configuredProtocol Configured protocol override from config.
  • array&lt;string, mixed&gt;|null $server Optional server map; defaults to \$_SERVER\.

Raven\Lib\Transport\Response::applyNoStoreHeaders()

  • File: private/lib/Transport/Response.php
  • Params: (none)

Raven\Lib\Transport\Response::json()

  • File: private/lib/Transport/Response.php
  • Params:
  • array&lt;string, mixed&gt; $payload
  • int $status HTTP status code to emit for the JSON response.
  • bool $noStore Whether the response should opt out of client/proxy caching.

Raven\Lib\Transport\Upload::filenameUsesAllowedExtension()

  • File: private/lib/Transport/Upload.php
  • Params:
  • string $filename Client-facing filename to inspect.
  • array&lt;int, string&gt; $allowedExtensions Allowed suffixes without dots required.

Raven\Lib\Transport\Upload::first()

  • File: private/lib/Transport/Upload.php
  • Params:
  • mixed $raw Raw \$_FILES[...]\ payload node.

Raven\Lib\Transport\Upload::normalize()

  • File: private/lib/Transport/Upload.php
  • Params:
  • mixed $raw Raw \$_FILES[...]\ payload node.

Raven\Lib\Transport\Upload::uploadErrorMessage()

  • File: private/lib/Transport/Upload.php
  • Params:
  • int $code One of the \UPLOADERR*\ constants.
  • string $fileLabel Human-facing file label such as \image\ or \CSV\.

Raven\Lib\Transport\Upload::validateSingleUpload()

  • File: private/lib/Transport/Upload.php
  • Params:
  • mixed $raw Raw \$_FILES[...]\ payload node or one normalized upload row.
  • string $fileLabel Human-facing file label such as \CSV\, \image\, or \theme archive\.
  • array{