works-http

Works Http for Android

Лицензия

Лицензия

Группа

Группа

com.mobilesolutionworks
Идентификатор

Идентификатор

works-http
Последняя версия

Последняя версия

1.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

works-http
Works Http for Android
Ссылка на сайт

Ссылка на сайт

http://sg.linkedin.com/in/yunarta/
Система контроля версий

Система контроля версий

https://github.com/yunarta/works-http

Скачать works-http

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.mobilesolutionworks/works-http/ -->
<dependency>
    <groupId>com.mobilesolutionworks</groupId>
    <artifactId>works-http</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.mobilesolutionworks/works-http/
implementation 'com.mobilesolutionworks:works-http:1.0.5'
// https://jarcasting.com/artifacts/com.mobilesolutionworks/works-http/
implementation ("com.mobilesolutionworks:works-http:1.0.5")
'com.mobilesolutionworks:works-http:jar:1.0.5'
<dependency org="com.mobilesolutionworks" name="works-http" rev="1.0.5">
  <artifact name="works-http" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mobilesolutionworks', module='works-http', version='1.0.5')
)
libraryDependencies += "com.mobilesolutionworks" % "works-http" % "1.0.5"
[com.mobilesolutionworks/works-http "1.0.5"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.mobilesolutionworks : works-util jar 1.0.4

Модули Проекта

Данный проект не имеет модулей.

Works HTTP

A simple to use Http library, but still offering low level customization and processing easily by overriding the class. It uses AsyncTask usage paradigm.

1. Usage in code

1.1. Adding as dependency

Manual

  • Download JAR
  • Put the AAR in the libs subfolder of your Android project
  • If you are using gradle you can use this dependency setting below
compile(name:'works-widget-1.0.1', ext:'aar')

or

Gradle dependency

compile 'com.mobilesolutionworks:works-http:1.0'

Maven dependency

<dependency>
	<groupId>com.mobilesolutionworks</groupId>
	<artifactId>works-http</artifactId>
	<version>1.0</version>
	<type>pom</type>
</dependency>

1.2. Simple request usage

WorksHttpRequest request = new WorksHttpRequest();
request.url = "http://www.google.com/robots.txt";

new WorksHttpAsyncTask<String>(this) {

    @Override
    public void onLoadFinished(WorksHttpRequest request, int statusCode, String data) {
        // receive the process result here
    }
}.execute(request);

or

new WorksHttpFutureTask<String>(this) {

    @Override
    public void onLoadFinished(WorksHttpRequest request, int statusCode, String data) {
        // receive the process result here
    }
}.execute(request);

Further usage can be checked in project wiki

Версии библиотеки

Версия
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0