MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / make_response

Function make_response

web/pgadmin/utils/ajax.py:87–95  ·  view source on GitHub ↗

Create a JSON response

(response=None, status=200)

Source from the content-addressed store, hash-verified

85
86
87def make_response(response=None, status=200):
88 """Create a JSON response"""
89 return Response(
90 response=json.dumps(
91 response, cls=DataTypeJSONEncoder, separators=(',', ':')),
92 status=status,
93 mimetype="application/json",
94 headers=get_no_cache_header()
95 )
96
97
98def internal_server_error(errormsg='',data=None):

Callers 9

auto_updateFunction · 0.90
indexFunction · 0.90
statusFunction · 0.90
utilsFunction · 0.85
exposed_urlsFunction · 0.85
error_jsFunction · 0.85
messages_jsFunction · 0.85
browser_cssFunction · 0.85
supported_serversMethod · 0.85

Calls 1

get_no_cache_headerFunction · 0.85

Tested by

no test coverage detected