Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 626 Bytes

+++ title = "Template" description = "Armor template" [menu.main] name = "Template" parent = "guide" +++

Armor template can be used to form a string from variables derived from the HTTP request. For example, to transfer a url /users/:name to /users/joe you will use

"/users/${path:name}"

Available Variables

  • scheme HTTP scheme (http or https)
  • method HTTP method
  • uri Request URI
  • path URL path
  • header:<NAME> Request header
  • path:<NAME> Path parameter
  • query:<NAME> Query parameter
  • form:<NAME> Form parameter

Supported Plugins