You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in the tests, it sends me 204 (NOT_CONTENT), but it is not a fail.
Nevertheless, on the ResultGenerator
letresult:Result<T>do{letentityDecoded=try decoder.decode(T.self, from: data)
result =.success(entityDecoded)}catch{
result =.fail(.noData)}
I was wondering about changing the Result from an enum to struct, where it is possible to store the HTTP status code, HTTP message and the body if exists.
amadeu01
added a commit
to amadeu01/Frisbee
that referenced
this issue
Oct 3, 2018
As mentioned at issue ronanrodrigo#8, it should be possible to accept an empty body, like when the server sends 204 (HTTP NOT CONTENT), it could be retrieved
Implement all (
post
,put
,patch
,delete
) HTTP verbs. Creating other classes likeNetworkGetter
to keep it conforms to SOLID.The text was updated successfully, but these errors were encountered: