Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload(multipartFormData does not support an RequestInterceptor #197

Open
realityworks opened this issue Jan 6, 2021 · 0 comments
Open

Comments

@realityworks
Copy link

There is no way to fix Authentication Token issues on 400/401 errors by reloading an authentication token.

There is also no way to extend RxAlamofire with the following :

  public func upload(multipartFormData: @escaping (MultipartFormData) -> Void,
                     to url: URLConvertible,
                     method: HTTPMethod,
                     headers: HTTPHeaders? = nil,
                     interceptor: RequestInteceptor? = nil) -> Observable<UploadRequest> {
    return request { manager in
      manager.upload(multipartFormData: multipartFormData, to: url, method: method, headers: headers, interceptor: interceptor)
    }
  }

Since the request creation function is internal, you cannot extend the Reactive RxAlamofire with a new function calling request directly.

Is there anyway to fix this without Forking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant