[B4X] OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code

Status
Not open for further replies.

Erel

B4X founder
Staff member
Licensed User
Longtime User
The attached code is compatible with B4A, B4J and B4i.

The various HttpUtils2 libraries are included in the IDE installation as internal libraries. The source code is attached here.

Dependencies

B4A - StringUtils, OkHttp
B4J - jStringUtils, OkHttp
B4i - iStringUtils, iHttp

Usage

In most cases you should use the library instead of the source code.
If you do want to use the source then add the two modules to your project (Project - Add Existing Modules).
HttpUtils2 tutorial: https://www.b4x.com/android/forum/threads/79345/#content

V2.70 - New Job.Response field that holds the Response object. It can be used to extract the headers and other information. Note that you need to add a reference to OkHttp / iHTTP in order to use it.
V2.62 - Job.GetBitmapResize added to B4i and B4A.
V2.61 - Fixes an issue with Job.PostMultiPart adding extra end of lines characters in some cases.
v2.60 - Adds support for PATCH, HEAD and DELETE methods.
- (B4A) New GetBitmapResize method that returns the response as a resized image. This method requires B4A v7.30+ (which was not yet released). Comment this sub if you are using an older versions of B4A.
 

Attachments

  • HttpUtils2Modules.zip
    3.7 KB · Views: 4,534
Last edited:
Status
Not open for further replies.
Top