AWSNetworkingHelpers

Objective-C

@interface AWSNetworkingHelpers : NSObject

/**
 Returns an array of NSURLQueryItems constructed from the request parameters. The query items in the array are not
 URL encoded.

 Supported value types of the dictionary are String or Array. Any other type of value will throw an
 NSInternalInconsistencyException. If the value is an array, each value will be added to the resulting array using the
 key, for example: `{"key1", ["value1", "value2"]}` would result in an array `[("key1", "value1"), ("key1", "value2")]`.

 @param requestParameters an NSDictionary<NSString *, (NSString * | NSArray<NSString *>)>
 @return an array of NSURLQueryItems
 */
+ (NSArray<NSURLQueryItem *> * _Nonnull)queryItemsFromDictionary:(NSDictionary<NSString *, id> * _Nonnull)requestParameters;

@end

Swift

class AWSNetworkingHelpers : NSObject

Undocumented

  • Returns an array of NSURLQueryItems constructed from the request parameters. The query items in the array are not URL encoded.

    Supported value types of the dictionary are String or Array. Any other type of value will throw an NSInternalInconsistencyException. If the value is an array, each value will be added to the resulting array using the key, for example: {"key1", ["value1", "value2"]} would result in an array [("key1", "value1"), ("key1", "value2")].

    Declaration

    Objective-C

    + (NSArray<NSURLQueryItem *> *_Nonnull)queryItemsFromDictionary:
        (NSDictionary<NSString *, id> *_Nonnull)requestParameters;

    Swift

    class func queryItems(from requestParameters: [String : Any]) -> [URLQueryItem]

    Parameters

    requestParameters

    an NSDictionary)>

    Return Value

    an array of NSURLQueryItems