Maxscape::HTTP::Request Package
Synopsis
use Maxscape::HTTP::Request;
Description
The Maxscape::HTTP::Request class provides the functionality to handle HTTP client requests.
List of Member Functions
- b64decode
- cleanPath
- ErrorCode
- FileSystemNodeType
- getAuthorization
- getHeader
- getPathInfo
- getRequestLine
- new
Member Functions
new
Synopsis
Description
Creates a Maxscape::HTTP::Request object.
getRequestLine
Synopsis
$RC = $Request->getRequestLine ($RequestLine);
Description
Gets the request line from a client.
Examples
$RC = $Request->getRequestLine ($RequestLine);
if ($RC != $Maxscape::HTTP::Status::RC_OK) {
&::LogError ('HTTP_RC_BAD_HEADER', Maxscape::HTTP::Status::StatusCodeToMessage($RC), $RC);
$self->{Request} = $Request;
return ($RC, $Request);
}
$Method = $Request->{Method};
$RequestURI = $Request->{RequestURI};
$Protocol = $Request->{Protocol};
$ProtocolVersion = $Request->{ProtocolVersion};
$RequestLine = $Request->{RequestLine};
$ErrorCode = $Request->{ErrorCode};
getHeader
Synopsis
$RC = $Request->getHeader ($Connection);
Description
Gets the request headers of a request of a client.
getAuthorization
Synopsis
$RC = $Request->getAuthorization ();
Description
Gets the basic authorization from a client's authorization header.
cleanPath
Synopsis
$RC = $Request->cleanPath ($PagePath);
Description
Convert the path to a clean form (e.g.: "..", ".").
getPathInfo
Synopsis
my $Request->getPathInfo ($Request->{cleanPath}, $PagePath);
Description
Gets the informantion from the page path.
FileSystemNodeType
Synopsis
my $Request->FileSystemNodeType ($cleanPath, $PagePath);
Description
Gets the informantion from the page path.
b64decode
Synopsis
my $Request->b64decode ($cleanPath, $PagePath);
Description
Converts a string from base64 format to normal.
ErrorCode
Synopsis
my $Request->ErrorCode ($cleanPath, $PagePath);
Description
Returns an error code.
1| Next ∙ Previous ∙ Top ∙ Join ∙ Contact | © Maxscape |
