ICanBoogie
  • Documentation
  • API Reference
  • HTTP master
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • CallableDispatcher
  • DispatcherProvider
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • ProvideDispatcher
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestOptionsMapper
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher
Interfaces
  • Dispatcher
  • Exception
  • FileOptions
  • RequestMethods
  • RequestOptions
  • ResponseStatus
  • SecurityError
Exceptions
  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • DispatcherProviderNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Class ForceRedirect

Exception thrown to force the redirect of the response.

Exception implements Throwable
┗ ICanBoogie\HTTP\ForceRedirect implements ICanBoogie\HTTP\Exception uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\HTTP
Located at ForceRedirect.php

Methods summary

protected get_location( void ) : string

Returns

string
public __construct( string $location, integer $code = Status::FOUND, ICanBoogie\HTTP\Exception $previous = null )

Parameters

$location
$code
$previous

Overrides

Exception::__construct
protected format_message( string $location ) : string

Formats exception message.

Formats exception message.

Parameters

$location

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

Magic properties

public read-only $location : string

The location of the redirect.

HTTP master – Check on GitHub – API documentation generated by ApiGen