mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-01 09:13:23 +08:00
Move DD code into its own directory (#6)
This commit is contained in:
9
reference/ddtrace/utils/http.py
Normal file
9
reference/ddtrace/utils/http.py
Normal file
@ -0,0 +1,9 @@
|
||||
def normalize_header_name(header_name):
|
||||
"""
|
||||
Normalizes an header name to lower case, stripping all its leading and trailing white spaces.
|
||||
:param header_name: the header name to normalize
|
||||
:type header_name: str
|
||||
:return: the normalized header name
|
||||
:rtype: str
|
||||
"""
|
||||
return header_name.strip().lower() if header_name is not None else None
|
Reference in New Issue
Block a user