All Projects → Karn → Khttp Android

Karn / Khttp Android

Licence: mpl-2.0
Kotlin HTTP request library for Android, adapted from @jkcclemens/khttp.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Khttp Android

Requests Respectful
Minimalist Requests wrapper to work within rate limits of any amount of services simultaneously. Parallel processing friendly.
Stars: ✭ 417 (+2216.67%)
Mutual labels:  requests
Lassie
Web Content Retrieval for Humans™
Stars: ✭ 521 (+2794.44%)
Mutual labels:  requests
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+3650%)
Mutual labels:  requests
Httmock
A mocking library for requests
Stars: ✭ 421 (+2238.89%)
Mutual labels:  requests
Jiekou Python3
接口自动化测试框架——python版,支持HTTP,dubbo协议接口
Stars: ✭ 468 (+2500%)
Mutual labels:  requests
Spider python
python爬虫
Stars: ✭ 557 (+2994.44%)
Mutual labels:  requests
Khttp
Kotlin HTTP requests library. Similar to Python requests.
Stars: ✭ 410 (+2177.78%)
Mutual labels:  requests
Wikipedia Frequency Lookup
Simple script written in Python to get the 20 words with highest frequency in an English Wikipedia article
Stars: ✭ 16 (-11.11%)
Mutual labels:  requests
Pycookiecheat
Borrow cookies from your browser's authenticated session for use in Python scripts.
Stars: ✭ 465 (+2483.33%)
Mutual labels:  requests
Price Monitor
京东商品价格监控:监控用户设定商品价格,降价邮件/微信提醒。技术:Python爬虫/IP代理池/JS接口爬取/Selenium页面爬取
Stars: ✭ 634 (+3422.22%)
Mutual labels:  requests
Asks
Async requests-like httplib for python.
Stars: ✭ 429 (+2283.33%)
Mutual labels:  requests
Jd mask
京东定时自动预约,抢购.(只针对性支持要先预约,到点抢购.然后直接下单的商品!)
Stars: ✭ 453 (+2416.67%)
Mutual labels:  requests
Easy Scraping Tutorial
Simple but useful Python web scraping tutorial code.
Stars: ✭ 583 (+3138.89%)
Mutual labels:  requests
Django Request
django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online etc.
Stars: ✭ 419 (+2227.78%)
Mutual labels:  requests
Requests3
Requests 3.0, for Humans and Machines, alike. 🤖
Stars: ✭ 813 (+4416.67%)
Mutual labels:  requests
Drissionpage
A module that integrates selenium and requests session, encapsulates common page operations, can achieve seamless switching between the two modes.
Stars: ✭ 409 (+2172.22%)
Mutual labels:  requests
Curl
Custom PHP curl library for the Laravel 5 framework - developed by Ixudra
Stars: ✭ 537 (+2883.33%)
Mutual labels:  requests
Microservices Connector
Inter-Service communication framework, support for microservice architecture and distributed system
Stars: ✭ 17 (-5.56%)
Mutual labels:  requests
Uplink
A Declarative HTTP Client for Python
Stars: ✭ 824 (+4477.78%)
Mutual labels:  requests
Course Crawler
🎓 中国大学MOOC、学堂在线、网易云课堂、好大学在线、爱课程 MOOC 课程下载。
Stars: ✭ 611 (+3294.44%)
Mutual labels:  requests

kHttp

kHttp Android

Lightweight HTTP requests library for Android.

Kotlin RxJava Build Status Codecov GitHub (pre-)release

kHttp Android is similar to Python's requests module. This library has been adapted from kHttp by jkcclemens which is no longer maintained.

GETTING STARTED

kHttp Android (pre-)releases are available via JitPack. It is recommended that a specific release version is selected when using the library in production as there may be breaking changes at anytime.

Tip: Test out the canary channel to try out features by using the latest develop snapshot; develop-SNAPSHOT.

// Project level build.gradle
// ...
repositories {
    maven { url 'https://jitpack.io' }
}
// ...

// Module level build.gradle
dependencies {
    // Replace version with release version, e.g. 1.0.0-alpha, -SNAPSHOT
    implementation "io.karn:khttp-android:[VERSION]"
}

USAGE

The most basic case is as follows:

// Get your IP synchronously
val ipAddress = get(url = "http://httpbin.org/ip").jsonObject.getString("origin")

// Get your IP asynchronously
get(url = "http://httpbin.org/ip")
    .subscribe { response : Response ->
        val ipAddress = response.jsonObject.getString("origin")
    }

KNOWN ISSUES

  • There is an issue with parsing a list of maps into a JSONObject — a test case doesJSONObjectBugExist documents the issue within the KHttpPostTest.kt file. This is platform related and cannot be fixed through this library. The current workaround is to build the JSONObject manually.

CONTRIBUTING

There are many ways to contribute, you can

  • submit bugs,
  • help track issues,
  • review code changes.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].