Class ParseErrorLine$
java.lang.Object
org.apache.pekko.http.impl.model.parser.ParseErrorLine$
INTERNAL API
Renders the input line a parse error occurred on with a caret under the failing position, the way parboiled2's
ErrorFormatter.formatErrorLine does, but with every control character escaped the way ErrorFormatter.format
already escapes the offending character in its summary.
The line is attacker-controlled -- a request target, a header value -- and the default
error-logging-verbosity = full writes it to the log, so a raw CR, ESC or NUL in it would let a client inject
line breaks or terminal control sequences into log output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseErrorLine$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
ParseErrorLine$
public ParseErrorLine$()
-
-
Method Details
-
render
-