use of com.bluenimble.platform.http.HttpHeader in project serverless by bluenimble.
the class DefaultHttpClient method updateCookies.
protected void updateCookies(HttpResponse response) {
if (!updateCookies) {
return;
}
HttpHeader cookie = response.getHeader(HttpHeaders.SET_COOKIE);
if (cookie == null) {
return;
}
cookies = cookie.getValues();
}
use of com.bluenimble.platform.http.HttpHeader in project serverless by bluenimble.
the class BodyAwareRequest method setContentType.
private String setContentType() {
String boundary = getBoundary();
String ct = contentType;
if (boundary != null) {
ct = contentType + "; boundary=" + boundary;
}
List<HttpHeader> headers = getHeaders();
if (headers == null) {
headers = new ArrayList<HttpHeader>();
setHeaders(headers);
}
headers.add(new HttpHeaderImpl(HttpHeaders.CONTENT_TYPE, ct));
return boundary;
}
Aggregations