-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build up request URI in parts for greater compatibility * Change visibility to public for all getStatusCode functions * Organise redirection exceptions
- Loading branch information
Showing
56 changed files
with
135 additions
and
113 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/ResponseStatusException/ClientError/AbstractClientErrorException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\ClientError; | ||
|
||
use Gt\Http\ResponseStatusException\AbstractResponseStatusException; | ||
|
||
abstract class AbstractClientErrorException extends AbstractResponseStatusException {} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
src/ResponseStatusException/ClientError/HttpMisdirectedRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\ClientError; | ||
|
||
use Gt\Http\StatusCode; | ||
|
||
class HttpMisdirectedRequest extends AbstractClientErrorException { | ||
public function getHttpCode():int { | ||
return StatusCode::MISDIRECTED_REQUEST; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/ResponseStatusException/ClientError/HttpPayloadTooLarge.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\ClientError; | ||
|
||
use Gt\Http\StatusCode; | ||
|
||
class HttpPayloadTooLarge extends AbstractClientErrorException { | ||
public function getHttpCode():int { | ||
return StatusCode::PAYLOAD_TOO_LARGE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/ResponseStatusException/ClientError/HttpPreconditionFailed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\ClientError; | ||
|
||
use Gt\Http\StatusCode; | ||
|
||
class HttpPreconditionFailed extends AbstractClientErrorException { | ||
public function getHttpCode():int { | ||
return StatusCode::PRECONDITION_FAILED; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/ResponseStatusException/ClientError/HttpPreconditionRequired.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\ClientError; | ||
|
||
use Gt\Http\StatusCode; | ||
|
||
class HttpPreconditionRequired extends AbstractClientErrorException { | ||
public function getHttpCode():int { | ||
return StatusCode::PRECONDITION_REQUIRED; | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...ption/HttpProxyAuthenticationRequired.php → ...Error/HttpProxyAuthenticationRequired.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...atusException/HttpRangeNotSatisfiable.php → ...n/ClientError/HttpRangeNotSatisfiable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/ResponseStatusException/ClientError/HttpRequestHeaderFieldsTooLarge.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\ClientError; | ||
|
||
use Gt\Http\StatusCode; | ||
|
||
class HttpRequestHeaderFieldsTooLarge extends AbstractClientErrorException { | ||
public function getHttpCode():int { | ||
return StatusCode::REQUEST_HEADER_FIELDS_TOO_LARGE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/ResponseStatusException/HttpRequestHeaderFieldsTooLarge.php
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/ResponseStatusException/Redirection/AbstractRedirectionException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Gt\Http\ResponseStatusException\Redirection; | ||
|
||
use Gt\Http\ResponseStatusException\AbstractResponseStatusException; | ||
|
||
abstract class AbstractRedirectionException extends AbstractResponseStatusException { | ||
public function __construct(string $redirectTo) { | ||
parent::__construct($redirectTo); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...eStatusException/HttpMovedPermanently.php → ...tion/Redirection/HttpMovedPermanently.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.