Lines Matching refs:kw
108 def __call__(self, req, *args, **kw): argument
112 if args or kw:
119 if len(args) != 1 or kw:
148 return self.func(req, *args, **kw)
150 def get(self, url, **kw): argument
161 kw.setdefault('method', 'GET')
162 req = self.RequestClass.blank(url, **kw)
165 def post(self, url, POST=None, **kw): argument
178 kw.setdefault('method', 'POST')
179 req = self.RequestClass.blank(url, POST=POST, **kw)
182 def request(self, url, **kw): argument
189 req = self.RequestClass.blank(url, **kw)
197 def clone(self, func=None, **kw): argument
210 kwargs.update(kw)
219 def middleware(cls, middle_func=None, app=None, **kw): argument
257 return _UnboundMiddleware(cls, app, kw)
259 return _MiddlewareFactory(cls, middle_func, kw)
260 return cls(middle_func, middleware_wraps=app, kwargs=kw)
268 def __init__(self, wrapper_class, app, kw): argument
271 self.kw = kw
280 return self.wrapper_class.middleware(func, app=app, **self.kw)
287 def __init__(self, wrapper_class, middleware, kw): argument
290 self.kw = kw
297 kw = self.kw.copy()
298 kw.update(config)
299 return self.wrapper_class.middleware(self.middleware, app, **kw)