Skip to content

upload(multipartFormData does not support an RequestInterceptor #197

@realityworks

Description

@realityworks

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions