+htp #16438 add Java-side rejection handling support
This commit is contained in:
parent
96ef8875c8
commit
db1be86b02
11 changed files with 427 additions and 2 deletions
|
|
@ -46,6 +46,8 @@ private[http] final case class RequestContextImpl(underlying: ScalaRequestContex
|
|||
|
||||
def notFound(): RouteResult = underlying.reject()
|
||||
|
||||
def reject(customRejection: CustomRejection): RouteResult = underlying.reject(CustomRejectionWrapper(customRejection))
|
||||
|
||||
def executionContext(): ExecutionContext = underlying.executionContext
|
||||
def materializer(): Materializer = underlying.materializer
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue