def METHOD_NAME(self, worker_id, socket_id, header_message, fileobj_or_bytestring):
    method = 'POST'
    url = self._worker_url_prefix(worker_id) + '/reply_data/' + str(socket_id)
    query_params = {'header_message': json.dumps(header_message)}
    if isinstance(fileobj_or_bytestring, bytes):
        self._make_request(method, url, query_params, headers={}, data=fileobj_or_bytestring)
    elif isinstance(fileobj_or_bytestring, str):
        raise Exception('Expected bytes, got string')
    else:
        self._upload_with_chunked_encoding(method, url, query_params, fileobj_or_bytestring)