<serve> serve a response object
- name
- serve
- xml namespace
- http://moyaproject.com
This tag serves a response object, which may be created with the <response>.
Example
<url route="/test/">
<response status="im_a_teapot" dst="teapot_response">
Short and Stout
</response>
<serve response="teapot_response" />
</url>
attributes
name |
purpose |
type |
required? |
default |
choices |
response |
Response object to serve |
expression |
Yes |
|
|
inherited attributes
name |
purpose |
type |
required? |
default |
choices |
if |
Conditional expression |
expression |
No |
yes |
|