Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cle-b/notebook-httpdbg
A notebook extension to trace the HTTP requests.
https://github.com/cle-b/notebook-httpdbg
httpdbg jupyter-notebook notebook python rest-api
Last synced: 22 days ago
JSON representation
A notebook extension to trace the HTTP requests.
- Host: GitHub
- URL: https://github.com/cle-b/notebook-httpdbg
- Owner: cle-b
- License: apache-2.0
- Created: 2023-11-04T16:06:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-10T20:41:57.000Z (10 months ago)
- Last Synced: 2024-09-16T12:57:12.449Z (2 months ago)
- Topics: httpdbg, jupyter-notebook, notebook, python, rest-api
- Language: Python
- Homepage: https://httpdbg.readthedocs.io/en/latest/notebook/
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notebook-httpdbg
**notebook-httpdbg** is a notebook extension to trace the HTTP requests.
## installation
```
pip install notebook-httpdbg
```## usage
### load the extension in the notebook
```
%load_ext notebook_httpdbg
```### trace the HTTP requests for a cell
```
%%httpdbg
```### configuration
```
%%httpdbg --header 500 --body 10000
```
You can choose the number of character to print for each request.## example
```
In [1]: %load_ext notebook_httpdbg
```
```
In [2]: import requests
``````
In [3]: %%httpdbg
_ = requests.get("https://www.example.com")
```
```
Out [3]: - [httpdbg] 1 requests in 0.48 seconds
- 200 GET https://www.example.com/
+ request
- reponse
Content-Encoding: gzip
Accept-Ranges: bytes
Age: 428224
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Sun, 05 Nov 2023 08:21:08 GMT
Etag: "3143526347+gzip"
Expires: Sun, 12 Nov 2023 08:21:08 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECS (bsb/27DC)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 648
Example Domain
```## documentation
https://httpdbg.readthedocs.io/en/latest/notebook/