Skip to content

Async2 Design

Joe Gregorio edited this page Feb 6, 2014 · 1 revision

Design document for HttpAsync()

Introduction

This design document is preliminary and should be discussed on the httplib2-dev mailing list.

Details

class HttpAsync:
  def __init__(self, cache, onerror_cb, server_initiated_cb):
    pass

  def request(self, method, body, ...., response_cb)
    pass

  def selectfds():
    """
    returns (rlist, wlist, xlist) suitable for passing to select.select().
    """
    pass

  def selectedfds(rlist, wlist, xlist):
    """
    takes in 3 lists as would be returned from select.select().
    """
    pass
Clone this wiki locally