From f04e9cc82f9a1f6997bfb8f92c36261de7b375f2 Mon Sep 17 00:00:00 2001 From: Sathiya Date: Mon, 22 Feb 2021 15:10:49 +0100 Subject: [PATCH] core: fix javadoc for HttpEntity.withSizeLimit, withoutSizeLimit (#3764) --- .../main/java/akka/http/javadsl/model/HttpEntity.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/akka-http-core/src/main/java/akka/http/javadsl/model/HttpEntity.java b/akka-http-core/src/main/java/akka/http/javadsl/model/HttpEntity.java index 57810296fbf..1354f22fd33 100644 --- a/akka-http-core/src/main/java/akka/http/javadsl/model/HttpEntity.java +++ b/akka-http-core/src/main/java/akka/http/javadsl/model/HttpEntity.java @@ -113,11 +113,6 @@ public interface HttpEntity { * Content-Length and then another limit is applied then this new limit will be evaluated against the new * Content-Length. If the entity is transformed in a way that changes the Content-Length and no new limit is applied * then the previous limit will be applied against the previous Content-Length. - * - * Note that the size limit applied via this method will only have any effect if the `Source` instance contained - * in this entity has been appropriately modified via the `HttpEntity.limitable` method. For all entities created - * by the HTTP layer itself this is always the case, but if you create entities yourself and would like them to - * properly respect limits defined via this method you need to make sure to apply `HttpEntity.limitable` yourself. */ HttpEntity withSizeLimit(long maxBytes); @@ -128,11 +123,6 @@ public interface HttpEntity { * application's `max-content-length` config setting. It is recommended to always keep an upper limit on accepted * entities to avoid potential attackers flooding you with too large requests/responses, so use this method with caution. * - * Note that the size limit applied via this method will only have any effect if the `Source` instance contained - * in this entity has been appropriately modified via the `HttpEntity.limitable` method. For all entities created - * by the HTTP layer itself this is always the case, but if you create entities yourself and would like them to - * properly respect limits defined via this method you need to make sure to apply `HttpEntity.limitable` yourself. - * * See [[withSizeLimit]] for more details. */ HttpEntity withoutSizeLimit();