@@ -186,10 +186,13 @@ default T withMaxPendingSocketConnections(int maxPendingSocketConnections) {
186186 }
187187
188188 /**
189- * Sets the maximum size of the HTTP request body by optionally per Content-Type. If this limit is exceeded, the connection will be closed.
189+ * Sets the maximum size of the HTTP request body by Content-Type. If this limit is exceeded, the connection will be closed.
190190 * <p>
191- * A key of "*" will be the default value if a key doesn't exist for the specific Content-Type. Additionally, you can specify wildcards
192- * for subtypes of Content-Types such as "application/*". This will be used if the exact Content-Type key is not in the Map.
191+ * The default size is identified by the "*" key. This default value will be used if a more specific value has not been configured for the
192+ * requested Content-Type.
193+ * <p>
194+ * You may also use wildcards to match one to many subtypes. For example, "application/*" will provide a max size for all content types
195+ * beginning with application/ when an exact match has not been configured.
193196 * <p>
194197 * An example lookup for the Content-Type "application/x-www-form-urlencoded" is:
195198 * <ol>
@@ -198,13 +201,13 @@ default T withMaxPendingSocketConnections(int maxPendingSocketConnections) {
198201 * <li>*</li>
199202 * </ol>
200203 * <p>
201- * If you pass in a Map that does not contain a default size using the String "* ", this will retain the default value set by java-http.
202- * Similarly, the default value for "application/x-www-form-urlencoded" is also retained if the Mapp you provide does not contain that
204+ * If the provided configuration does not contain the initial default values for "*" and "application/x-www-form-urlencoded ", the
205+ * server default values will be retained.
203206 * key.
204207 * <p>
205208 * Set any value to -1 to disable this limitation.
206209 * <p>
207- * Defaults to 128 Megabytes for the wildcard "*" and 10 Megabytes for "application/x-www-form-urlencoded".
210+ * Defaults to 128 Megabytes for the default "*" and 10 Megabytes for "application/x-www-form-urlencoded".
208211 *
209212 * @param maxRequestBodySize a map specifying the maximum size in bytes for the HTTP request body by Content-Type
210213 * @return This.
0 commit comments