Splitting out request parsing into the two middlewares (though not yet implemented on the real one).

pull/730/head
jMyles 2019-02-04 23:19:59 -05:00
parent 695ced174a
commit f61fcebc09
1 changed files with 5 additions and 8 deletions

View File

@ -37,16 +37,13 @@ class NotFound(UnexpectedResponse):
class NucypherMiddlewareClient:
library = requests
def __init__(self,
response_cleaner=None,
):
if response_cleaner is not None:
self.response_cleaner = response_cleaner
else:
self.response_cleaner = lambda r: r
def url_from_node_or_host_and_port(self, node, host, port):
raise NotImplementedError()
def invoke_method(self, method, url, *args, **kwargs):
raise NotImplementedError()
def __getattr__(self, method_name):
# Quick sanity check.