Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1958)  |  Call(0)  |  Derive(1218)  |  Import(740)
HTTP request handler base class.

The following explanation of HTTP serves to guide you through the
code as well as to expose any misunderstandings I may have about
HTTP (so you don't need to read the code to figure out I'm wrong
:-).

HTTP (HyperText Transfer Protocol) is an extensible protocol on
top of a reliable stream transport (e.g. TCP/IP).  The protocol
recognizes three parts to a request:(more...)

src/p/y/pydanny-event-notes-HEAD/Pycon2009/internet/examples/ch20/alt/myhttpd.py   pydanny-event-notes(Download)
#!/usr/bin/env python
 
from os import curdir, sep, getcwd
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
 
# subclass BaseHTTPRequestHandler and support GET requests
class MyHandler(BaseHTTPRequestHandler):

src/p/y/pydanny-event-notes-HEAD/Pycon2009/internet/examples/ch20/myhttpd.py   pydanny-event-notes(Download)
#!/usr/bin/env python
 
from os import curdir, sep
from BaseHTTPServer import \
    BaseHTTPRequestHandler, HTTPServer
 
class MyHandler(BaseHTTPRequestHandler):

src/p/y/pytaint-HEAD/example_practical.py   pytaint(Download)
import urllib
import urlparse
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
 
SECRET_KEY = 'l33t_passwd'
class Handler(BaseHTTPRequestHandler):
  def get_parameters(self):
    return urlparse.parse_qs("".join(self.path.split('?')[1:]))
 
  def send_response(self, data):

src/h/u/hue-HEAD/desktop/core/ext-py/python-openid-2.2.5/examples/server.py   hue(Download)
#!/usr/bin/env python
 
__copyright__ = 'Copyright 2005-2008, Janrain, Inc.'
 
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
class ServerHandler(BaseHTTPRequestHandler):
    def __init__(self, *args, **kwargs):
        self.user = None
        BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
 

src/h/u/hue-HEAD/desktop/core/ext-py/python-openid-2.2.5/examples/consumer.py   hue(Download)
    return '"%s"' % (qs,)
 
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
 
try:
class OpenIDRequestHandler(BaseHTTPRequestHandler):
    """Request handler that knows how to verify an OpenID identity."""
    SESSION_COOKIE_NAME = 'pyoidconsexsid'
 
    session = None

src/h/u/hue-HEAD/desktop/core/ext-py/python-oauth2/example/server.py   hue(Download)
"""
 
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import urllib
 
class RequestHandler(BaseHTTPRequestHandler):
 
    def __init__(self, *args, **kwargs):
        self.oauth_server = oauth.OAuthServer(MockOAuthDataStore())
        self.oauth_server.add_signature_method(oauth.OAuthSignatureMethod_PLAINTEXT())

src/h/a/Hadoop-HEAD/avro-examples/python/ipc/test-server.py   Hadoop(Download)
#!/usr/bin/env python
 
from BaseHTTPServer import BaseHTTPRequestHandler
from BaseHTTPServer import HTTPServer
 
class RequestHandler(BaseHTTPRequestHandler):
    def do_POST(self):
        request_reader = ipc.FramedReader(self.rfile)
        request = request_reader.read_framed_message()
 

src/o/h/oh-mainline-HEAD/vendor/packages/python-openid/examples/server.py   oh-mainline(Download)
#!/usr/bin/env python
 
__copyright__ = 'Copyright 2005-2008, Janrain, Inc.'
 
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
class ServerHandler(BaseHTTPRequestHandler):
    def __init__(self, *args, **kwargs):
        self.user = None
        BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
 

src/o/h/oh-mainline-HEAD/vendor/packages/python-openid/examples/consumer.py   oh-mainline(Download)
    return '"%s"' % (qs,)
 
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
 
try:
class OpenIDRequestHandler(BaseHTTPRequestHandler):
    """Request handler that knows how to verify an OpenID identity."""
    SESSION_COOKIE_NAME = 'pyoidconsexsid'
 
    session = None

src/p/l/plaidcloud_agent-HEAD/plaidcloudexamples/uploadnoticer.py   plaidcloud_agent(Download)
__status__ = 'Alpha'
 
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from plaidcloud.container import Container
import cgi
 
 
class UploadHandler(BaseHTTPRequestHandler):

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next