WasCreated updates the provided bool pointer to whether the server returned 201 created or a different response.
(wasCreated *bool)
| 1128 | // WasCreated updates the provided bool pointer to whether the server returned |
| 1129 | // 201 created or a different response. |
| 1130 | func (r Result) WasCreated(wasCreated *bool) Result { |
| 1131 | *wasCreated = r.statusCode == http.StatusCreated |
| 1132 | return r |
| 1133 | } |
| 1134 | |
| 1135 | // Error returns the error executing the request, nil if no error occurred. |
| 1136 | // If the returned object is of type Status and has Status != StatusSuccess, the |
no outgoing calls