PHP RestApi
REST is an acronym for REpresentational State Transfer and an architectural style for distributed hypermedia systems.
|
Classes | |
class | ClientRequest |
interface | RequestInterface |
class | Response |
interface | ResponseInterface |
class | ServerRequest |
Functions | |
hasAuthorization () | |
getAuthorization () | |
getAuthType () | |
withAuthType (string $AuthType) | |
getCredentials () | |
withCredentials (string $Credentials) | |
Variables | |
trait | RequestTrait |
$credentials = "" | |
Samy\SimpleApi\getAuthorization | ( | ) |
Return an instance with provided authorization header.
Samy\SimpleApi\getAuthType | ( | ) |
Retrieve provided authorization type.
Samy\SimpleApi\getCredentials | ( | ) |
Retrieve provided authorization credentials.
Samy\SimpleApi\hasAuthorization | ( | ) |
Checks if a has authorization header.
Samy\SimpleApi\withAuthType | ( | string | $AuthType | ) |
Return an instance with provided authorization type.
[in] | string | $AuthType | Authorization type |
Samy\SimpleApi\withCredentials | ( | string | $Credentials | ) |
Return an instance with provided authorization credentials.
[in] | string | $Credentials | Authorization credentials |
|
protected |
describe credentials
trait Samy::SimpleApi\RequestTrait |
Describes SimpleApi Request reuse code.