works-http

Works Http for Android

License

License

GroupId

GroupId

com.mobilesolutionworks
ArtifactId

ArtifactId

works-http
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

works-http
Works Http for Android
Project URL

Project URL

http://sg.linkedin.com/in/yunarta/
Source Code Management

Source Code Management

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

Download works-http

How to add to project

<!-- 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"]

Dependencies

compile (1)

Group / Artifact Type Version
com.mobilesolutionworks : works-util jar 1.0.4

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0