(self: _StreamFileMixinProto, filename: str, file_location: ty.Optional[str] = None,
	              file: ty.Optional[ty.IO[bytes]] = None,
	              content_type: ty.Optional[str] = None)
Yields the entire contents of a file.
		
		Parameters
		----------
		filename
			Filename of the file being opened and added to the HTTP body
		file_location
			Full path to the file being added, including the filename
		file
			The binary file-like object whose contents should be streamed
			
			No contents will be streamed if this is ``None``.
		content_type
			The Content-Type of the file; if not set a value will be guessed
Yields the entire contents of a file.
		
		Parameters
		----------
		filename
			Filename of the file being opened and added to the HTTP body
		file_location
			Full path to the file being added, including the filename
		file
			The binary file-like object whose contents should be streamed
			
			No contents will be streamed if this is ``None``.
		content_type
			The Content-Type of the file; if not set a value will be guessed
Yields the entire contents of a file . Parameters ---------- filename Filename of the file being opened and added to the HTTP body file_location Full path to the file being added including the filename file The binary file - like object whose contents should be streamed No contents will be streamed if this is None . content_type The Content - Type of the file ; if not set a value will be guessed
def _gen_file(self: _StreamFileMixinProto, filename: str, file_location: ty.Optional[str] = None,
	              file: ty.Optional[ty.IO[bytes]] = None,
	              content_type: ty.Optional[str] = None) -> gen_bytes_t:
		"""Yields the entire contents of a file.
		
		Parameters
		----------
		filename
			Filename of the file being opened and added to the HTTP body
		file_location
			Full path to the file being added, including the filename
		file
			The binary file-like object whose contents should be streamed
			
			No contents will be streamed if this is ``None``.
		content_type
			The Content-Type of the file; if not set a value will be guessed
		"""
		yield from self._gen_file_start(filename, file_location, content_type)
		if file:
			yield from self._gen_file_chunks(file)
		yield from self._gen_file_end()
def _gen_file ( self : _StreamFileMixinProto , filename : str , file_location : ty . Optional [ str ] = None , file : ty . Optional [ ty . IO [ bytes ] ] = None , content_type : ty . Optional [ str ] = None ) -> gen_bytes_t : yield from self . _gen_file_start ( filename , file_location , content_type ) if file : yield from self . _gen_file_chunks ( file ) yield from self . _gen_file_end ( )