Skip to content

Commit

Permalink
core: fix javadoc for HttpEntity.withSizeLimit, withoutSizeLimit (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
sathiyapk authored Feb 22, 2021
1 parent ddb174c commit f04e9cc
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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();
Expand Down

0 comments on commit f04e9cc

Please sign in to comment.