NSMutableURLRequest(ARTUtils)

@interface NSMutableURLRequest (ARTUtils)

/**
 Note: this method is using URLComponents to deconstruct URL of this request then it replacing `host` with new one.
 If for some reasons new URL constructed by URLComponents is `nil`, old URL is a valiid URL for this request.
 */
- (void)replaceHostWith:(NSString *)host;
- (void)appendQueryItem:(NSURLQueryItem *)item;

@end

Undocumented

  • Note: this method is using URLComponents to deconstruct URL of this request then it replacing host with new one. If for some reasons new URL constructed by URLComponents is nil, old URL is a valiid URL for this request.

    Declaration

    Objective-C

    - (void)replaceHostWith:(nonnull NSString *)host;

    Swift

    func replaceHost(with host: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)appendQueryItem:(NSURLQueryItem *)item;

    Swift

    func append(_ item: URLQueryItem)