mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 14:33:00 +00:00
@@ -579,7 +579,9 @@ def utcnow():
|
|||||||
|
|
||||||
def _parse_accept_header(accept):
|
def _parse_accept_header(accept):
|
||||||
"""
|
"""
|
||||||
Parse the Accept header *accept*, returning a list with 3-tuples of
|
Parse the Accept header *accept*
|
||||||
|
|
||||||
|
Return a list with 3-tuples of
|
||||||
[(str(media_type), dict(params), float(q_value)),] ordered by q values.
|
[(str(media_type), dict(params), float(q_value)),] ordered by q values.
|
||||||
If the accept header includes vendor-specific types like::
|
If the accept header includes vendor-specific types like::
|
||||||
application/vnd.yourcompany.yourproduct-v1.1+json
|
application/vnd.yourcompany.yourproduct-v1.1+json
|
||||||
|
Reference in New Issue
Block a user