Skip to content

1.6.0.2 HttpClient support for upload of binary payload

Compare
Choose a tag to compare
@michaelgantman michaelgantman released this 06 Apr 16:06
· 26 commits to master since this release

Http Client got new methods that allow uploading binary payload. There are 4 new methods that allow upload of binary payload and receive text/binary response. Below is the list of the new methods:

public java.lang.String sendHttpRequest(HttpClient.HttpMethod callMethod,
                                        java.nio.ByteBuffer data)
                                 throws java.io.IOException
								 
public java.lang.String sendHttpRequest(java.lang.String requestUrl,
                                        HttpClient.HttpMethod callMethod,
                                        java.nio.ByteBuffer data)
                                 throws java.io.IOException
								 
public java.nio.ByteBuffer sendHttpRequestForBinaryResponse(HttpClient.HttpMethod callMethod,
                                                            java.nio.ByteBuffer data)
                                                     throws java.io.IOException

public java.nio.ByteBuffer sendHttpRequestForBinaryResponse(java.lang.String requestUrl,
                                                            HttpClient.HttpMethod callMethod,
                                                            java.nio.ByteBuffer data)
                                                     throws java.io.IOException