SITURL

@interface SITURL : NSObject

Abstraction of URL. Unifies management of both absolutes and relatives URLs.

  • Initializer

    Note

    Accepts both absolute and relative URLs

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithDirection:(NSString *_Nonnull)direction;

    Parameters

    direction

    The URL

    Return Value

    SITURL

  • True if the value used to construct the URL doesn’t start by ‘/’, meaning it has a specific host.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isAbsolute;
  • The URL

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull direction;