Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
f4322a1e
Commit
f4322a1e
authored
Dec 12, 2008
by
Michael Hanselmann
Browse files
ganeti.http: Rename HttpSocketBase to HttpBase
It's more appropriate. Reviewed-by: iustinp
parent
c41eea6e
Changes
3
Show whitespace changes
Inline
Side-by-side
lib/http/__init__.py
View file @
f4322a1e
...
...
@@ -369,7 +369,7 @@ class HttpSslParams(object):
self
.
ssl_cert_pem
)
class
Http
Socket
Base
(
object
):
class
HttpBase
(
object
):
"""Base class for HTTP server and client.
"""
...
...
lib/http/client.py
View file @
f4322a1e
...
...
@@ -141,7 +141,7 @@ class _HttpServerToClientMessageReader(http.HttpMessageReader):
return
http
.
HttpServerToClientStartLine
(
version
,
status
,
reason
)
class
HttpClientRequestExecutor
(
http
.
Http
Socket
Base
):
class
HttpClientRequestExecutor
(
http
.
HttpBase
):
# Default headers
DEFAULT_HEADERS
=
{
http
.
HTTP_USER_AGENT
:
http
.
HTTP_GANETI_VERSION
,
...
...
@@ -164,7 +164,7 @@ class HttpClientRequestExecutor(http.HttpSocketBase):
@param req: Request object
"""
http
.
Http
Socket
Base
.
__init__
(
self
)
http
.
HttpBase
.
__init__
(
self
)
self
.
request
=
req
self
.
poller
=
select
.
poll
()
...
...
lib/http/server.py
View file @
f4322a1e
...
...
@@ -379,7 +379,7 @@ class _HttpServerRequestExecutor(object):
self
.
response_msg
.
body
=
self
.
error_message_format
%
values
class
HttpServer
(
http
.
Http
Socket
Base
):
class
HttpServer
(
http
.
HttpBase
):
"""Generic HTTP server class
Users of this class must subclass it and override the HandleRequest function.
...
...
@@ -404,7 +404,7 @@ class HttpServer(http.HttpSocketBase):
it with our certificate
"""
http
.
Http
Socket
Base
.
__init__
(
self
)
http
.
HttpBase
.
__init__
(
self
)
self
.
mainloop
=
mainloop
self
.
local_address
=
local_address
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment