MCPcopy
hub / github.com/postmanlabs/httpbin / view_user_agent

Function view_user_agent

httpbin/core.py:182–187  ·  view source on GitHub ↗

Returns User-Agent.

()

Source from the content-addressed store, hash-verified

180
181@app.route('/user-agent')
182def view_user_agent():
183 """Returns User-Agent."""
184
185 headers = get_headers()
186
187 return jsonify({'user-agent': headers['user-agent']})
188
189
190@app.route('/get', methods=('GET',))

Callers

nothing calls this directly

Calls 2

get_headersFunction · 0.85
jsonifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…