Prepare makes sure the response is initialized even if not done explicitly by
()
| 121 | // Prepare makes sure the response is initialized even if not done explicitly |
| 122 | // by |
| 123 | func (r *HTTPResponseExpr) Prepare() { |
| 124 | if r.Headers == nil { |
| 125 | r.Headers = NewEmptyMappedAttributeExpr() |
| 126 | } |
| 127 | if r.Cookies == nil { |
| 128 | r.Cookies = NewEmptyMappedAttributeExpr() |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // Validate checks that the response definition is consistent: its status is set |
| 133 | // and the result type definition if any is valid. |
nothing calls this directly
no test coverage detected