class documentation
class PackHandler(Handler):
Known subclasses: dulwich.server.ReceivePackHandler, dulwich.server.UploadPackHandler
Constructor: PackHandler(backend, proto, stateless_rpc)
Protocol handler for packs.
| Class Method | innocuous |
Return capabilities that don't affect protocol behavior. |
| Class Method | required |
Return a list of capabilities that we require the client to have. |
| Method | __init__ |
Initialize a PackHandler. |
| Method | capabilities |
Return a list of capabilities supported by this handler. |
| Method | has |
Check if the client supports a specific capability. |
| Method | notify |
Notify that the 'done' command has been received from the client. |
| Method | set |
Set the client capabilities and validate them. |
| Instance Variable | advertise |
Undocumented |
| Instance Variable | _client |
Undocumented |
| Instance Variable | _done |
Undocumented |
Inherited from Handler:
| Method | handle |
Handle a request. |
| Instance Variable | backend |
Undocumented |
| Instance Variable | proto |
Undocumented |
| Instance Variable | stateless |
Undocumented |
overridden in
dulwich.server.UploadPackHandlerReturn a list of capabilities that we require the client to have.
Check if the client supports a specific capability.
Returns: True if the client supports the capability
| Parameters | |
cap:bytes | Capability name to check |
| Returns | |
bool | Undocumented |
| Raises | |
GitProtocolError | If called before client capabilities are set |
overridden in
dulwich.server.UploadPackHandlerSet the client capabilities and validate them.
| Parameters | |
caps:Iterable[ | List of capabilities requested by the client |
| Raises | |
GitProtocolError | If client requests unsupported capability or lacks required ones |