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

Function make_response

gunicorn/dirty/protocol.py:680–695  ·  view source on GitHub ↗

Build a success response message dict. Args: request_id: Request identifier this responds to result: Result value Returns: dict: Response message dict

(request_id, result)

Source from the content-addressed store, hash-verified

678
679
680def make_response(request_id, result) -> dict:
681 """
682 Build a success response message dict.
683
684 Args:
685 request_id: Request identifier this responds to
686 result: Result value
687
688 Returns:
689 dict: Response message dict
690 """
691 return {
692 "type": DirtyProtocol.MSG_TYPE_RESPONSE,
693 "id": request_id,
694 "result": result,
695 }
696
697
698def make_error_response(request_id, error) -> dict:

Callers 4

handle_status_requestMethod · 0.70
handle_manage_requestMethod · 0.70
handle_stash_requestMethod · 0.70
handle_requestMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected