Commit Graph

11 Commits

Author SHA1 Message Date
Dietmar Maurer
a3bb607024 add new hook function to generate CSRF token
This avoid the reference to PVE::AccessControl.
2017-01-14 13:16:59 +01:00
Dietmar Maurer
8001eb275f pass auth_handler result to formatters
In case somebody want to display that info.
2017-01-14 11:12:05 +01:00
Dietmar Maurer
c715437597 rework formatter registration
Do the whole thing inside PVE/APIServer/Formatter.pm
2017-01-14 10:42:33 +01:00
Dietmar Maurer
63307bebd9 add generic formatter framework 2017-01-14 09:53:44 +01:00
Dietmar Maurer
d08808bc8a rename class to PVE::APIServer::AnyEvent
So that we can move all api server related code into PVE::APIServer::*.
2017-01-13 18:18:13 +01:00
Dietmar Maurer
859f1fd3a6 debian/control: add missing dependencies 2017-01-13 14:55:16 +01:00
Dietmar Maurer
403964f266 avoide dependency on PVE::AccessControl
add new abstract function verify_spice_connect_url().
2017-01-13 14:53:28 +01:00
Dietmar Maurer
fbc42b33e7 move abstract fuctions to end of file 2017-01-13 14:45:56 +01:00
Dietmar Maurer
b639f458c5 AsyncHTTPServer.pm: fix dependencies, remove handler implementation
So this is an abstract, reusable class now.
2017-01-13 13:33:22 +01:00
Dietmar Maurer
4fe2161253 fix/change class name to PVE::AsyncHTTPServer 2017-01-13 13:16:54 +01:00
Dietmar Maurer
d82180013b initial import
The PVE/AsyncHTTPServer.pm code is copied from the pve-manager
package (PVE/HTTPServer.pm) and renamed.
2017-01-13 12:57:46 +01:00