Content-Type
To specify Content-Type the contentType
attribute may be used.
Default is application/json
Examples
The following markup:
<e:get url="mirror/request">
<e:case>
<e:expected>{ "GET": "/mirror/request" }</e:expected>
</e:case>
</e:get>
will be rendered as:Use cases: | |
---|---|
1) | |
| 200512ms |
Specifying Content-Type
= text/plain
The following markup:
<e:get url="mirror/request" contentType="text/plain">
<e:case>
<e:expected> { "GET" : "/mirror/request" } </e:expected>
</e:case>
</e:get>
will be rendered as:Use cases: | |
---|---|
2) | |
| 20019ms |