8000 Document `http/debug.py` · DataXujing/twilio-python@5e58e6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e58e6f

Browse files
author
Doug Black
committed
Document http/debug.py
1 parent dc51b11 commit 5e58e6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

twilio/http/debug.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44

55
class DebugClient(HttpClient):
6+
"""
7+
A `DebugClient` can be used to print out requests before sending them out.
8+
"""
69
def __init__(self, client):
710
super(DebugClient, self).__init__()
811
self._client = client
912

10-
def request(self,
11-
method,
12-
url,
13-
params=None,
14-
data=None,
15-
headers=None,
16-
auth=None,
13+
def request(self, method, url, params=None, data=None, headers=None, auth=None,
1714
timeout=None,
1815
allow_redirects=False):
16+
"""
17+
Make an HTTP request.
18+
"""
1919
req = Request(method=method, url=url, auth=auth, params=params, data=data, headers=headers)
2020
print(req)
2121
return self._client.request(

0 commit comments

Comments
 (0)
0