Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htto

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htto

simple, high performance http requests library

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

HTTO is high performance and simple HTTP library.

install htto library on windows/linux

pip install htto

how to use:

# 1 import htto library
import htto

# 2 creat client to save your connections session
cn = htto.client(timeout=10)
cn_without_timeout = cn()

# 3 send http request
response = cn.get('https://httpbin.org/ip')

# 4 take response with any format
print(response.json()['origin'])
print(response.text())
print(response.body())
print(response.headers().get('User-Agent'))

# 5 close connection after finish
cn.close_host('httpbin.org')

# 6 close all connections in the client
cn.close()

send http request directly

import htto

# send http request without client
response = htto.get('https://httpbin.org')
print(response.text())

soon htto will support proxies HTTP, HTTPS, SOCKS4, SOCKS5

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc