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
{{ message }}
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Just like this scene:
I perform a fetchUserEvents request when I run my App at the first time.
Here, I suppose I need to store the etag from the Response and use it in fetchUserEvents next time, right?
I dig deep into the source code, found the etag is defined in Response.swift:
publicclassResponse{
// .....
// The etag uniquely identifying this response data.
publicvaretag:String{return urlResponse.allHeaderFields["ETag"]as?String??""}
// .....
}
But the fetchUserEvents method is return a Observable<[Event]>, not a Observable<Response>. So I can't find a way to get the etag ...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sorry to bother you again @onmyway133 😓
This method is return an
Observable<[Events]>
(transform fromObservable<Response>
)So how can I fetch the
etag
.....The text was updated successfully, but these errors were encountered: