Commit 96300f5 1 parent 26393c6 commit 96300f5 Copy full SHA for 96300f5
File tree 1 file changed +15
-8
lines changed
instrumentation/opentelemetry-instrumentation-aiohttp-server/tests
1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 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
+
2
15
from enum import Enum
3
16
4
17
5
18
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"""
13
20
14
21
def __repr__ (self ):
15
22
return self .value [0 ]
You can’t perform that action at this time.
0 commit comments