class documentation
class RemoteApiHandler(http.auth.HttpServerRequestAuthentication, http.server.HttpServerHandler):
REST Request Handler Class.
| Static Method | |
Formats the body of an error message. |
| Method | __init__ |
Initializes this class. |
| Method | |
Checks whether a user can access a resource. |
| Method | |
Determine whether authentication is required. |
| Method | |
Handles a request. |
| Constant | AUTH |
Undocumented |
| Method | _ |
Returns the context for a request. |
| Instance Variable | _client |
Undocumented |
| Instance Variable | _reqauth |
Undocumented |
| Instance Variable | _resmap |
Undocumented |
| Instance Variable | _user |
Undocumented |
Inherited from HttpServerRequestAuthentication:
| Method | |
Returns the authentication realm for a request. |
| Method | |
Called before a request is handled. |
| Method | |
Checks the password for basic authentication. |
| Method | _ |
Checks 'Authorization' header sent by client. |
| Method | _ |
Checks credentials sent for basic authentication. |
| Constant | _CLEARTEXT |
Undocumented |
| Constant | _HA1 |
Undocumented |
Formats the body of an error message.
| Parameters | |
| values:dict | dictionary with keys code, message and explain. |
| Returns | |
| tuple; (string, string) | Content-type and response body |
Initializes this class.
| Parameters | |
| user | Function receiving username as string and returning http.auth.PasswordFileUser or None if user is not found |
| reqauth:bool | Whether to require authentication |
| _client | Undocumented |