code: def __ConfigureMediaRequest(self, http_request):
          
          http_request.headers['content-type'] = self.mime_type
          http_request.body = self.stream.read()
          http_request.loggable_body = '<media body>'
docs: Configure http_request as a simple request for this upload.