Looking at the documentation, it says that the default dstPrefix
for io.l5d.header.path
is /svc
. But the example hints that /h2
is the default:
With this configuration, a request to
:5000/true/love/waits.php?thing=1
will be mapped to/h2/true/love
and will be routed based on this name by the corresponding Dtab.
The dstPrefix
is not explicitly set in this example config:
routers:
- protocol: h2
experimental: true
identifier:
kind: io.l5d.header.path
segments: 2
servers:
- port: 5000
Didn’t find a hint in the code either.