ICanBoogie/HTTP v2.4.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Dispatcher
      • Headers
      • Request

Classes

  • CallableDispatcher
  • Dispatcher
  • File
  • FileInfo
  • FileList
  • Headers
  • Helpers
  • RedirectResponse
  • Request
  • Response
  • Status
  • WeightedDispatcher

Interfaces

  • DispatcherInterface
  • Exception

Exceptions

  • DispatcherNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • ServiceUnavailable
  • StatusCodeNotValid

Functions

  • dispatch
  • get_dispatcher
  • get_initial_request

Class RedirectResponse

A HTTP response doing a redirect.

ICanBoogie\HTTP\Response uses ICanBoogie\Accessor\AccessorTrait (not available)
Extended by ICanBoogie\HTTP\RedirectResponse
Namespace: ICanBoogie\HTTP
Located at RedirectResponse.php

Methods summary

public
# __construct( string $url, integer $status = 302, array $headers = [] )

Initializes the Location header.

Initializes the Location header.

Parameters

$url
URL to redirect to.
$status
Status code (default to 302).
$headers
Additional headers.

Throws

InvalidArgumentException
if the provided status code is not a redirect.

Overrides

ICanBoogie\HTTP\Response::__construct

Methods inherited from ICanBoogie\HTTP\Response

__clone(), __invoke(), __toString(), assert_body_is_valid(), finalize(), get_age(), get_body(), get_cache_control(), get_content_length(), get_content_type(), get_date(), get_etag(), get_expires(), get_is_cacheable(), get_is_fresh(), get_is_validateable(), get_last_modified(), get_location(), get_status(), get_ttl(), send_body(), send_headers(), set_age(), set_body(), set_cache_control(), set_content_length(), set_content_type(), set_date(), set_etag(), set_expires(), set_last_modified(), set_location(), set_status(), set_ttl()

Properties summary

Properties inherited from ICanBoogie\HTTP\Response

$headers, $version

Magic properties inherited from ICanBoogie\HTTP\Response

$age, $body, $cache_control, $content_length, $content_type, $date, $etag, $expires, $is_cacheable, $is_fresh, $is_private, $is_validateable, $last_modified, $location, $status, $ttl

ICanBoogie/HTTP v2.4.0 API documentation generated by ApiGen