Compartilhar via


QueueMessage Class

An HTTP response object.

Inheritance
azure.functions._queue.QueueMessage
QueueMessage

Constructor

QueueMessage(*, id=None, body=None, dequeue_count=None, expiration_time=None, insertion_time=None, time_next_visible=None, pop_receipt=None)

Keyword-Only Parameters

Name Description
id
Required
body
Required
dequeue_count
Required
expiration_time
Required
insertion_time
Required
time_next_visible
Required
pop_receipt
Required

Methods

get_body

Return message content as bytes.

get_json

Decode and return message content as a JSON object.

get_body

Return message content as bytes.

get_body() -> bytes

get_json

Decode and return message content as a JSON object.

get_json() -> Any

Returns

Type Description

Decoded JSON data.

Exceptions

Type Description

when the body of the message does not contain valid JSON data.

Attributes

dequeue_count

expiration_time

id

Message ID.

insertion_time

pop_receipt

The message pop receipt token as a string.

time_next_visible