class_docstr: Manage the invocation of a WSGI application
class_docstr_tok: ["Manage","the","invocation","of","a","WSGI","application"]
docstr: Platform-specific file transmission
  
  Override this method in subclasses to support platform-specific
  file transmission.  It is only called if the application's
  return iterable ('self.result') is an instance of
  'self.wsgi_file_wrapper'.
  
  This method should return a true value if it was able to actually
  transmit the wrapped file-like object using a platform-specific
  approach.  It should return a false value if normal iteration
  should be used instead.  An exception can be raised to indicate
  that transmission was attempted, but failed.
  
  NOTE: this method should call 'self.send_headers()' if
  'self.headers_sent' is false and it is going to attempt direct
  transmission of the file.
docstr_tok: ["Platform-specific","file","transmission","Override","this","method","in","subclasses","to","support","platform-specific","file","transmission",".","It","is","only","called","if","the","application's","return","iterable","(","'self.result","'",")","is","an","instance","of","'self.wsgi_file_wrapper","'",".","This","method","should","return","a","true","value","if","it","was","able","to","actually","transmit","the","wrapped","file-like","object","using","a","platform-specific","approach",".","It","should","return","a","false","value","if","normal","iteration","should","be","used","instead",".","An","exception","can","be","raised","to","indicate","that","transmission","was","attempted",",","but","failed",".","NOTE",":","this","method","should","call","'self.send_headers","(",")","'","if","'self.headers_sent","'","is","false","and","it","is","going","to","attempt","direct","transmission","of","the","file","."]
code: def sendfile(self):
      """Platform-specific file transmission
  
      Override this method in subclasses to support platform-specific
      file transmission.  It is only called if the application's
      return iterable ('self.result') is an instance of
      'self.wsgi_file_wrapper'.
  
      This method should return a true value if it was able to actually
      transmit the wrapped file-like object using a platform-specific
      approach.  It should return a false value if normal iteration
      should be used instead.  An exception can be raised to indicate
      that transmission was attempted, but failed.
  
      NOTE: this method should call 'self.send_headers()' if
      'self.headers_sent' is false and it is going to attempt direct
      transmission of the file.
      """
      return False
  
imports: from .util import FileWrapper, guess_scheme, is_hop_by_hop
  from .headers import Headers
  import sys, os, time
label_desc: Use image node_id 12 for calling the BaseHandler obj's underlying member method code with example usage: obj.sendfile() and returns: False