Skip to content

Commit

Permalink
add strict content types to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy authored Jul 21, 2024
1 parent 625291d commit 7a20454
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,7 @@ Javalin.create(config -> {
config.http.maxRequestSize = longValue; // the max size of request body that can be accessed without using using an InputStream
config.http.defaultContentType = stringValue; // the default content type
config.http.asyncTimeout = longValue; // timeout in milliseconds for async requests (0 means no timeout)
config.http.strictContentTypes = booleanValue; // throw exception if e.g content-type is missing/incorrect when attempting to parse JSON

config.http.customCompression(strategy); // set a custom compression strategy
config.http.brotliAndGzipCompression(lvl, lvl); // enable brotli and gzip compression with the specified levels
Expand All @@ -1125,6 +1126,7 @@ Javalin.create { config ->
config.http.maxRequestSize = longValue // the max size of request body that can be accessed without using using an InputStream
config.http.defaultContentType = stringValue // the default content type
config.http.asyncTimeout = longValue // timeout in milliseconds for async requests (0 means no timeout)
config.http.strictContentTypes = booleanValue // throw exception if e.g content-type is missing/incorrect when attempting to parse JSON

config.http.customCompression(strategy) // set a custom compression strategy
config.http.brotliAndGzipCompression(lvl, lvl) // enable brotli and gzip compression with the specified levels
Expand Down

0 comments on commit 7a20454

Please sign in to comment.