public static UniversalEntity create(ContentType contentType, File file, int chunkSize) { return create(contentType, file.toPath(), chunkSize); }
public static HttpEntity.Chunked createChunked(ContentType contentType, Source<ByteString, ?> data) { return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData( (akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
public static UniversalEntity create(ContentType contentType, File file, int chunkSize) { return create(contentType, file.toPath(), chunkSize); }
public static HttpEntity.Chunked createChunked(ContentType contentType, Source<ByteString, ?> data) { return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData( (akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
public static UniversalEntity create(ContentType contentType, File file, int chunkSize) { return create(contentType, file.toPath(), chunkSize); }
public static HttpEntity.Chunked createChunked(ContentType contentType, Source<ByteString, ?> data) { return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData( (akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
public static HttpEntity.Default create(ContentType contentType, long contentLength, Source<ByteString, ?> data) { return new akka.http.scaladsl.model.HttpEntity.Default((akka.http.scaladsl.model.ContentType) contentType, contentLength, toScala(data)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
public static HttpEntity.IndefiniteLength createIndefiniteLength(ContentType contentType, Source<ByteString, ?> data) { return new akka.http.scaladsl.model.HttpEntity.IndefiniteLength((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
public static HttpEntity.Chunked create(ContentType contentType, Source<ByteString, ?> data) { return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
/** * Converts this FormData to a RequestEntity using the given encoding. */ public RequestEntity toEntity(HttpCharset charset) { return HttpEntities.create(ContentTypes.create(MediaTypes.APPLICATION_X_WWW_FORM_URLENCODED, charset), fields.render(charset)); }
public static HttpEntity.CloseDelimited createCloseDelimited(ContentType contentType, Source<ByteString, ?> data) { return new akka.http.scaladsl.model.HttpEntity.CloseDelimited((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
HttpEntities.create(optionalContentType.get(), ByteString.ByteStrings.fromString(payload.toString()))); } else { httpResponse = httpResponse.withEntity( HttpEntities.create(payload.toString())); if (optionalContentType.isPresent()) { httpResponse = httpResponse.withEntity( HttpEntities.create(optionalContentType.get(), rawPayload.array())); } else { httpResponse = httpResponse.withEntity( HttpEntities.create(rawPayload.array()));
public static HttpEntity.Chunked create(ContentType contentType, Source<ByteString, ?> data) { return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
public static HttpEntity.CloseDelimited createCloseDelimited(ContentType contentType, Source<ByteString, ?> data) { return new akka.http.scaladsl.model.HttpEntity.CloseDelimited((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
public static HttpEntity.Default create(ContentType contentType, long contentLength, Source<ByteString, ?> data) { return new akka.http.scaladsl.model.HttpEntity.Default((akka.http.scaladsl.model.ContentType) contentType, contentLength, toScala(data)); }
public static HttpEntity.Chunked create(ContentType contentType, Source<ByteString, ?> data) { return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }
public static HttpEntity.CloseDelimited createCloseDelimited(ContentType contentType, Source<ByteString, ?> data) { return new akka.http.scaladsl.model.HttpEntity.CloseDelimited((akka.http.scaladsl.model.ContentType) contentType, toScala(data)); }