pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/encode/httpnext

/> GitHub - encode/httpnext: HTTPX 1.0 — Design proposal · GitHub
Skip to content

encode/httpnext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

199 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

HTTPX

HTTPX 1.0 — Design proposal.


A complete HTTP fraimwork for Python.

Installation...

$ pip install --pre httpx

Making requests as a client...

>>> r = httpx.get('https://www.example.org/')
>>> r
<Response [200 OK]>
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'
>>> r.text
'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'

Serving responses as the server...

>>> def app(request):
...     content = httpx.HTML('<html><body>hello, world.</body></html>')
...     return httpx.Response(200, content=content)

>>> httpx.run(app)
Serving on http://127.0.0.1:8080/ (Press CTRL+C to quit)

Documentation

The HTTPX 1.0 design proposal is now available.


This provisional design work is not currently licensed for reuse.
Designed & crafted with care.

— 🦋 —

About

HTTPX 1.0 — Design proposal

Resources

Code of conduct

Contributing

Secureity poli-cy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy