RBURLBuilder Class Reference

Inherits from NSObject
Declared in RBURLBuilder.h

Overview

A convenience URL builder class.

  urlRoot

The root NSURL object.

@property (nonatomic, readonly, nonnull) NSURL *urlRoot

Declared In

RBURLBuilder.h

– initWithUrlRoot:

Initializes a new URL builder with the given root URL.

- (nonnull instancetype)initWithUrlRoot:(nonnull NSURL *)urlRoot

Parameters

urlRoot

The root URL to use.

Return Value

The initialized object.

Declared In

RBURLBuilder.h

  parameterKeys

The parameter keys that are currently configured in the URL.

@property (nonatomic, readonly, nonnull) NSArray<NSString*> *parameterKeys

Declared In

RBURLBuilder.h

– parameterValuesWithKey:

The values that are associated with the given parameter key.

- (nonnull NSArray<NSString*> *)parameterValuesWithKey:(nonnull NSString *)key

Parameters

key

The parameter key.

Return Value

The values that are associated with the key.

Declared In

RBURLBuilder.h

– addParameterValue:withKey:

Add a new parameter value to the URL.

- (void)addParameterValue:(nonnull NSString *)value withKey:(nonnull NSString *)key

Parameters

value

The value of the parameter.

key

The key of the parameter.

Declared In

RBURLBuilder.h

– removeAllParameterValues

Remove all of the parameters.

- (void)removeAllParameterValues

Declared In

RBURLBuilder.h

  url

The result NSURL object.

@property (nonatomic, readonly, nonnull) NSURL *url

Declared In

RBURLBuilder.h