MCPcopy
hub / github.com/benoitc/gunicorn / encode_status

Method encode_status

gunicorn/dirty/protocol.py:289–301  ·  view source on GitHub ↗

Encode a status query message. Args: request_id: Request identifier Returns: bytes: Complete message (header + empty payload)

(request_id: int)

Source from the content-addressed store, hash-verified

287
288 @staticmethod
289 def encode_status(request_id: int) -> bytes:
290 """
291 Encode a status query message.
292
293 Args:
294 request_id: Request identifier
295
296 Returns:
297 bytes: Complete message (header + empty payload)
298 """
299 # Status query has empty payload
300 header = BinaryProtocol.encode_header(MSG_TYPE_STATUS, request_id, 0)
301 return header
302
303 @staticmethod
304 def encode_manage(request_id: int, op: int, count: int = 1) -> bytes:

Callers 1

_encode_from_dictMethod · 0.80

Calls 1

encode_headerMethod · 0.80

Tested by

no test coverage detected