code: def write_request(self, request, full_url=False):
          '''Send the request's HTTP status line and header fields.
  
          This class will automatically connect the connection if the
          connection is closed.
  
          Coroutine.
          '''
          _logger.debug('Sending headers.')
  
          if hasattr(request, 'prepare_for_send'):
              request.prepare_for_send(full_url=full_url)
  
          if self._ignore_length:
              request.fields['Connection'] = 'close'
  
          data = request.to_bytes()
  
          self._data_event_dispatcher.notify_write(data)
  
          # XXX: Connection lost is raised too early on Python 3.2, 3.3 so
          # don't flush but check for connection closed on reads
          yield from self._connection.write(data, drain=Falsef write_request(self, request, full_url=False):
          '''Send the request's HTTP status line and header fields.
  
          This class will automatically connect the connection if the
          connection is closed.
  
          Coroutine.
          '''
          _logger.debug('Sending headers.')
  
          if hasattr(request, 'prepare_for_send'):
              request.prepare_for_send(full_url=full_url)
  
          if self._ignore_length:
              request.fields['Connection'] = 'close'
  
          data = request.to_bytes()
  
          self._data_event_dispatcher.notify_write(data)
  
          # XXX: Connection lost is raised too early on Python 3.2, 3.3 so
          # don't flush but check for connection closed on reads
          yield from self._connection.write(data, drain=False)
docs: Send the request's HTTP status line and header fields.
  
          This class will automatically connect the connection if the
          connection is closed.
  
          Coroutine.