extractParserSettings

Description

Extracts the request’s underlying ParserSettings, which can be useful when you want to access custom status codes and media types.

Example

final Route route = extractParserSettings(parserSettings ->
  complete("URI parsing mode is " + parserSettings.getUriParsingMode())
);

// tests:
testRoute(route).run(HttpRequest.GET("/"))
  .assertEntity("URI parsing mode is Strict");
The source code for this page can be found here.