public class AlternativeHttpClientImpl extends HttpClientBase implements HttpResponseCode, Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
sPreferHttp2 |
static boolean |
sPreferSpdy |
BAD_GATEWAY, BAD_REQUEST, ENHANCE_YOUR_CLAIM, FORBIDDEN, FOUND, GATEWAY_TIMEOUT, INTERNAL_SERVER_ERROR, MULTIPLE_CHOICES, NOT_ACCEPTABLE, NOT_FOUND, NOT_MODIFIED, OK, SERVICE_UNAVAILABLE, TOO_MANY_REQUESTS, UNAUTHORIZED, UNPROCESSABLE_ENTITY
Constructor and Description |
---|
AlternativeHttpClientImpl() |
AlternativeHttpClientImpl(HttpClientConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
String |
getLastRequestProtocol() |
addDefaultRequestHeader, delete, delete, get, get, getRequestHeaders, head, post, post, put, put, request, request, write
public static boolean sPreferSpdy
public static boolean sPreferHttp2
public AlternativeHttpClientImpl()
public AlternativeHttpClientImpl(HttpClientConfiguration conf)
public String getLastRequestProtocol()
Copyright © 2015. All rights reserved.