HTTPResponseExpr defines a HTTP response including its status code, headers and result type.
| 86 | // HTTPResponseExpr defines a HTTP response including its status code, |
| 87 | // headers and result type. |
| 88 | HTTPResponseExpr struct { |
| 89 | // HTTP status |
| 90 | StatusCode int |
| 91 | // Response description |
| 92 | Description string |
| 93 | // Headers describe the HTTP response headers. |
| 94 | Headers *MappedAttributeExpr |
| 95 | // Cookies describe the HTTP response cookies. |
| 96 | Cookies *MappedAttributeExpr |
| 97 | // Response body if any |
| 98 | Body *AttributeExpr |
| 99 | // Response Content-Type header value |
| 100 | ContentType string |
| 101 | // Tag the value a field of the result must have for this |
| 102 | // response to be used. |
| 103 | Tag [2]string |
| 104 | // Parent expression, one of EndpointExpr, ServiceExpr or |
| 105 | // RootExpr. |
| 106 | Parent eval.Expression |
| 107 | // Meta is a list of key/value pairs |
| 108 | Meta MetaExpr |
| 109 | } |
| 110 | ) |
| 111 | |
| 112 | // EvalName returns the generic definition name used in error messages. |
nothing calls this directly
no outgoing calls
no test coverage detected