Download the PHP package corpus/http without Composer
On this page you can find all versions of the php package corpus/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package http
Http
HTTP Status Codes and Exceptions
Requirements
- php: ^7.3 | ^8.0
Installing
Install the latest version with:
Documentation
Class: Corpus\Http\Exceptions\AbstractHttpException
Base Exception class all HTTP Exception Classes Extend
Method: AbstractHttpException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Method: AbstractHttpException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Class: Corpus\Http\Exceptions\ClientError\AbstractClientErrorException
Base of Exceptions Representing The 4xx Class
Method: AbstractClientErrorException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Method: AbstractClientErrorException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Class: Corpus\Http\Exceptions\ClientError\BadRequestException
Method: BadRequestException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: BadRequestException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Exceptions\ClientError\ForbiddenException
Method: ForbiddenException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: ForbiddenException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Exceptions\ClientError\NotFoundException
Method: NotFoundException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: NotFoundException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Exceptions\ClientError\TooManyRequestsException
Method: TooManyRequestsException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: TooManyRequestsException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Exceptions\ClientError\UnauthorizedException
Method: UnauthorizedException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: UnauthorizedException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Exceptions\Redirection\AbstractLocationRedirectionHttpException
Base of 3xx Exceptions which include a "Location" header.
Method: AbstractLocationRedirectionHttpException->__construct
AbstractRedirectionHttpException constructor.
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- \Throwable | null
$previous
- [optional] The previous throwable used for the exception chaining.
Undocumented Method: AbstractLocationRedirectionHttpException->getLocation()
Method: AbstractLocationRedirectionHttpException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Class: Corpus\Http\Exceptions\Redirection\AbstractRedirectionHttpException
Base of Exceptions Representing The 3xx Class
Method: AbstractRedirectionHttpException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Method: AbstractRedirectionHttpException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Class: Corpus\Http\Exceptions\Redirection\FoundException
Method: FoundException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: FoundException->__construct
AbstractRedirectionHttpException constructor.
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- \Throwable | null
$previous
- [optional] The previous throwable used for the exception chaining.
Undocumented Method: FoundException->getLocation()
Class: Corpus\Http\Exceptions\Redirection\SeeOtherException
Method: SeeOtherException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: SeeOtherException->__construct
AbstractRedirectionHttpException constructor.
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- \Throwable | null
$previous
- [optional] The previous throwable used for the exception chaining.
Undocumented Method: SeeOtherException->getLocation()
Class: Corpus\Http\Exceptions\ServerError\AbstractServerErrorException
Base of Exceptions Representing The 5xx Class
Method: AbstractServerErrorException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Method: AbstractServerErrorException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Class: Corpus\Http\Exceptions\ServerError\InternalServerErrorException
Method: InternalServerErrorException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: InternalServerErrorException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Exceptions\Success\AbstractSuccessException
Base of Exceptions Representing The 2xx Class
Method: AbstractSuccessException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Method: AbstractSuccessException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Class: Corpus\Http\Exceptions\Success\NoContentException
Method: NoContentException->getHttpStatusCode
Get the HTTP Status Code the Exception Represents
Method: NoContentException->__construct
Construct the *HttpException.
Use the HTTP Status code as the base exceptions code.
Parameters:
- string
$message
Class: Corpus\Http\Status
Method: Status::statusText
Return the text for an HTTP status code.
Class: Corpus\Http\StatusAwareInterface
Method: StatusAwareInterface->getHttpStatusCode
Get the HTTP Status Code the Exception Represents