A SMALL HOOK. A DIFFERENT REQUEST.
See your request change.
Write AssemblyScript, run it as WebAssembly, and inspect the request it produces.
01
Request
INPUTINITIAL HTTP GROUP100
FixedGroup switches are assumed to be authorized. Just test what your code changes.
02
AssemblyScript
TS-likeRequest API 4 fields · 2 setters
request.methodrequest.authority // hostnamerequest.pathrequest.querysetPath("/new/path")switchHttpGroup(102)Getters read the original request. Setters apply together when the handler succeeds.
AssemblyScript is TypeScript-like. Browser/Node APIs and built-in RegExp are unavailable.
03
Result
OUTPUTYour next request starts here.
Run your code to see the resulting path, query and HTTP group.