swift/proxy/controllers/obj.py
def await_response(self, timeout, informational=False):
        """
        Get 100-continue response indicating the end of 1st phase of a 2-phase
        commit or the final response, i.e. the one with status >= 200.

        Might or might not actually wait for anything. If we said Expect:
        100-continue but got back a non-100 response, that'll be the thing
        returned, and we won't do any network IO to get it. OTOH, if we got
        a 100 Continue response and sent up the PUT request's body, then
        we'll actually read the 2xx-5xx response off the network here.

        :param timeout: time to wait for a response
        :param informational: if True then try to get a 100-continue response,
                              otherwise try to get a final response.
        :returns: HTTPResponse
        :raises Timeout: if the response took too long
        """
        # don't do this update of self.resp if the Expect response during
        # connect() was actually a final response
        if not self.final_resp:
            with Timeout(timeout):
                if informational:
                    self.resp = self.conn.getexpect()
                else:
                    self.resp = self.conn.getresponse()
        return self.resp

        Get 100-continue response indicating the end of 1st phase of a 2-phase
        commit or the final response, i.e. the one with status >= 200.

        Might or might not actually wait for anything. If we said Expect:
        100-continue but got back a non-100 response, that'll be the thing
        returned, and we won't do any network IO to get it. OTOH, if we got
        a 100 Continue response and sent up the PUT request's body, then
        we'll actually read the 2xx-5xx response off the network here.

        :param timeout: time to wait for a response
        :param informational: if True then try to get a 100-continue response,
                              otherwise try to get a final response.
        :returns: HTTPResponse
        :raises Timeout: if the response took too long
        
Get 100-continue response indicating the end of 1st phase of a 2-phase
commit or the final response, i.e. the one with status >= 200.

Might or might not actually wait for anything. If we said Expect:
100-continue but got back a non-100 response, that'll be the thing
returned, and we won't do any network IO to get it. OTOH, if we got
a 100 Continue response and sent up the PUT request's body, then
we'll actually read the 2xx-5xx response off the network here.
Get 100 - continue response indicating the end of 1st phase of a 2 - phase commit or the final response i . e . the one with status > = 200 . Might or might not actually wait for anything . If we said Expect : 100 - continue but got back a non - 100 response that ' ll be the thing returned and we won ' t do any network IO to get it . OTOH if we got a 100 Continue response and sent up the PUT request ' s body then we ' ll actually read the 2xx - 5xx response off the network here .
def await_response(self, timeout, informational=False):
        if not self.final_resp:
            with Timeout(timeout):
                if informational:
                    self.resp = self.conn.getexpect()
                else:
                    self.resp = self.conn.getresponse()
        return self.resp
def await_response ( self , timeout , informational = False ) : if not self . final_resp : with Timeout ( timeout ) : if informational : self . resp = self . conn . getexpect ( ) else : self . resp = self . conn . getresponse ( ) return self . resp
Get 100-continue response indicating the end of 1st phase of a 2-phase
commit or the final response, i.e.
Get 100 - continue response indicating the end of 1st phase of a 2 - phase commit or the final response i . e .
"""
        Get 100-continue response indicating the end of 1st phase of a 2-phase
        commit or the final response, i.e. the one with status >= 200.

        Might or might not actually wait for anything. If we said Expect:
        100-continue but got back a non-100 response, that'll be the thing
        returned, and we won't do any network IO to get it. OTOH, if we got
        a 100 Continue response and sent up the PUT request's body, then
        we'll actually read the 2xx-5xx response off the network here.

        :param timeout: time to wait for a response
        :param informational: if True then try to get a 100-continue response,
                              otherwise try to get a final response.
        :returns: HTTPResponse
        :raises Timeout: if the response took too long
        """ # don't do this update of self.resp if the Expect response during # connect() was actually a final response
None
if the response took too long
if the response took too long
Timeout
self
timeout
time to wait for a response
time to wait for a response
informational
if True then try to get a 100-continue response,
otherwise try to get a final response.
if True then try to get a 100 - continue response otherwise try to get a final response .