All Projects → ander7agar → android-http-client

ander7agar / android-http-client

Licence: other
Simple and lightweight HTTP client for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to android-http-client

Punchclock
Make sure your asynchronous operations show up to work on time
Stars: ✭ 235 (+1707.69%)
Mutual labels:  http-client
EthernetWebServer SSL
Simple TLS/SSL Ethernet WebServer, HTTP Client and WebSocket Client library for for AVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52 and RASPBERRY_PI_PICO boards using Ethernet shields W5100, W5200, W5500, ENC28J60 or Teensy 4.1 NativeEthernet/QNEthernet. It now supports Ethernet TLS/SSL Client. The library supports …
Stars: ✭ 40 (+207.69%)
Mutual labels:  http-client
simplehttp
HTTP client for Elixir without dependencies
Stars: ✭ 16 (+23.08%)
Mutual labels:  http-client
Elastic
An Elasticsearch REST API client for Rust
Stars: ✭ 248 (+1807.69%)
Mutual labels:  http-client
Axios
Promise based HTTP client for the browser and node.js
Stars: ✭ 89,857 (+691107.69%)
Mutual labels:  http-client
Rump
REST client for Java that allows for easy configuration and default values. Allows for quick request construction and a huge range of modifications by using response/request interceptors, adjusting default values related to HTTP requests and creating custom instances for when you need multiple API connection setups.
Stars: ✭ 55 (+323.08%)
Mutual labels:  http-client
Http Client
[Deprecated] Event-driven, streaming HTTP client for ReactPHP.
Stars: ✭ 228 (+1653.85%)
Mutual labels:  http-client
direwolf
Package direwolf is a convenient and easy to use http client written in Golang.
Stars: ✭ 44 (+238.46%)
Mutual labels:  http-client
cpphttpstack
c++ api for http client & server
Stars: ✭ 30 (+130.77%)
Mutual labels:  http-client
hackernews
📰 HackerNews API
Stars: ✭ 40 (+207.69%)
Mutual labels:  http-client
Csaguzzlebundle
A bundle integrating Guzzle >=4.0 in Symfony
Stars: ✭ 248 (+1807.69%)
Mutual labels:  http-client
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+407992.31%)
Mutual labels:  http-client
http
ponylang HTTP client library 🐴 🕸️
Stars: ✭ 38 (+192.31%)
Mutual labels:  http-client
Urllib3
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more.
Stars: ✭ 2,857 (+21876.92%)
Mutual labels:  http-client
sugar
Declarative HTTP client for Golang
Stars: ✭ 25 (+92.31%)
Mutual labels:  http-client
Avhttp
avhttp is concurrent http downloader
Stars: ✭ 232 (+1684.62%)
Mutual labels:  http-client
typesense-dart
Dart client for Typesense
Stars: ✭ 50 (+284.62%)
Mutual labels:  http-client
matador
Take your appclication by the horns
Stars: ✭ 59 (+353.85%)
Mutual labels:  http-client
go-sse
Fully featured, spec-compliant HTML5 server-sent events library
Stars: ✭ 165 (+1169.23%)
Mutual labels:  http-client
pawn-requests
pawn-requests provides an API for interacting with HTTP(S) JSON APIs.
Stars: ✭ 56 (+330.77%)
Mutual labels:  http-client

Android HTTP Client

Android Http Client is a small library to make requests to any internet service simple and practical way. You can implement multiple interfaces for the management of the responses. It also includes interfaces for managing upload and download of files.

These are the interfaces that includes the library and its use:

  • RequestListener: Capture the events of the start and end of the request.
  • ResponseListener: Capture the response when making the request.

Compatibility:

  • Android SDK: Android Http Client requires a minimum API Level 14
  • Marek Sebera Http Client: Marek Sebera Http Client for Android.
  • JSON: Android Http Client uses JSON Java Library for compatibility json responses.
  • XML: Android Http Client uses Jsoup Library for compatibility xml responses.

How do I use this library:

Request request = Request.create("http://service.server.com/getData");
request.setMethod("POST")
    .setTimeout(120) //2 Minutes
    .addHeader("Authorization", "Key=MY_SERVICE_KEY")
    .addParameter("key1", "value1")
    .addParameter("key2", "value3")
    .addParameter(new Parameter("key3", "value3"))
    .addParameter("file", new File("myfile.txt"))
    .setFileUploadListener(new FileUploadListener() {
        @Override
        public void onUploadingFile(File file, long size, long uploaded) {

        }
    })
    .setRequestStateListener(new RequestStateListener() {
        @Override
        public void onStart() {

        }

        @Override
        public void onFinish() {

        }

        @Override
        public void onUploadProgress(float progress) {
            
        }
                    
        @Override
        public void onConnectionError(Exception e) {
           e.printStackTrace();
        }
    })
    .setResponseListener(new JsonResponseListener() {
        @Override
        public void onOkResponse(JSONObject jsonObject) throws JSONException {

        }

        @Override
        public void onErrorResponse(JSONObject jsonObject) throws JSONException {

        }

        @Override
        public void onParseError(JSONException e) {

        }
    }).execute();

Download:

Gradle:

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.ander7agar:android-org.apache.http-client:0.6.1'
}

Maven:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
	</repository>
</repositories>
<dependency>
    <groupId>com.github.ander7agar</groupId>
    <artifactId>android-org.apache.http-client</artifactId>
    <version>0.6.1</version>
</dependency>

License:

Copyright 2017 Andersson G. Acosta de la Rosa

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    org.apache.http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].