Project

General

Profile

Task #264

Refactor client side to support streaming

Added by Dave Vieglais over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
d1_common_python
Target version:
Start date:
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

The client currently uses httplib2 because of its support for proper caching, variety of auth mechanisms, and proper handling of redirects etc. However that library assumes complete download of target resource (in memory object) which can be a PITA with large data. Should be simple to subclass httplib client to enable optional return of the open socket or ability to write to a writable stream passed as a parameter.

Include appropriate unit tests to ensure correct functionality across the bizarre range of http requests that need to be supported.

History

#1 Updated by Dave Vieglais over 14 years ago

  • Status changed from New to Closed

Refactored the d1 client to allow selection of a http client rather than subclassing a http client. Currently using python urllib2 and httplib to implement a HTTP REST client.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)