B4A Library [B4X] OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code

Discussion in 'Additional libraries, classes and official updates' started by Erel, Aug 9, 2017.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed 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.
     

    Attached Files:

    Last edited: Jun 25, 2018
    Johan Hormaza, fredo, dcoun and 16 others like this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    V2.70 released. See first post.
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice