MCPcopy Create free account
hub / github.com/StackStorm/st2 / process_successful_response

Function process_successful_response

st2auth/st2auth/controllers/v1/auth.py:89–93  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

87
88
89def process_successful_response(token):
90 resp = Response(json=token, status=http_client.CREATED)
91 # NOTE: gunicon fails and throws an error if header value is not a string (e.g. if it's None)
92 resp.headers["X-API-URL"] = api_utils.get_base_public_api_url()
93 return resp
94
95
96token_controller = TokenController()

Callers 1

postMethod · 0.70

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected