Document HTTP custom method (#20508)
This commit is contained in:
parent
fb1905870c
commit
15c77e3392
10 changed files with 202 additions and 1 deletions
|
|
@ -22,3 +22,13 @@ print what type of request it was - independent of what actual HttpMethod it was
|
|||
|
||||
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/MethodDirectivesExamplesSpec.scala
|
||||
:snippet: extractMethod-example
|
||||
|
||||
|
||||
Custom Http Method
|
||||
------------------
|
||||
|
||||
When you define a custom HttpMethod, you can define a route using extractMethod.
|
||||
|
||||
.. includecode:: ../../../../code/docs/http/scaladsl/server/directives/CustomHttpMethodSpec.scala
|
||||
:include: application-custom
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue