use of com.bluenimble.platform.http.impls.HttpHeaderImpl 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