Package be.wegenenverkeer.rxhttpclient
Class CompatUtilities
- java.lang.Object
-
- be.wegenenverkeer.rxhttpclient.CompatUtilities
-
public class CompatUtilities extends java.lang.ObjectA set of utility functions to assist in the migrations from AHC 1.9 to AHC 2.6 Created by Karel Maesen, Geovise BVBA on 2018-12-13.
-
-
Constructor Summary
Constructors Constructor Description CompatUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbodyExcerpt(org.asynchttpclient.Response response, int maxLength)static java.lang.StringbodyExcerpt(org.asynchttpclient.Response response, int maxLength, java.lang.String charset)static java.util.Map<java.lang.String,java.util.List<java.lang.String>>headersToMap(io.netty.handler.codec.http.HttpHeaders headers)Returns the headers as an immutable map
-
-
-
Method Detail
-
headersToMap
public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> headersToMap(io.netty.handler.codec.http.HttpHeaders headers)
Returns the headers as an immutable map- Parameters:
headers-- Returns:
-
bodyExcerpt
public static java.lang.String bodyExcerpt(org.asynchttpclient.Response response, int maxLength)
-
bodyExcerpt
public static java.lang.String bodyExcerpt(org.asynchttpclient.Response response, int maxLength, java.lang.String charset)
-
-