Skip to content

Commit 96300f5

Browse files
committed
Add LICENSE header.
1 parent 26393c6 commit 96300f5

File tree

1 file changed

+15
-8
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-server/tests

1 file changed

+15
-8
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/tests/utils.py

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
# This was adapted from Python 3.11 http module.
1+
# Copyright 2020, OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
215
from enum import Enum
316

417

518
class HTTPMethod(Enum):
6-
"""HTTP methods and descriptions
7-
8-
Methods from the following RFCs are all observed:
9-
10-
* RFC 7231: Hypertext Transfer Protocol (HTTP/1.1), obsoletes 2616
11-
* RFC 5789: PATCH Method for HTTP
12-
"""
19+
"""HTTP methods and descriptions"""
1320

1421
def __repr__(self):
1522
return self.value[0]

0 commit comments

Comments
 (0)