code: def __clientDefer(self, c):
          
          def handle_headers(r):
              self.gotHeaders(c.response_headers)
              return r
  
          return c.deferred.addBoth(handle_headers)
docs: Return a deferred for a HTTP client, after handling incoming headers