17 #import "OFCharacterSet.h"
18 #import "OFSerialization.h"
20 OF_ASSUME_NONNULL_BEGIN
22 @class OFArray OF_GENERIC(ObjectType);
34 OFString *_Nullable _URLEncodedScheme, *_Nullable _URLEncodedHost;
36 OFString *_Nullable _URLEncodedUser, *_Nullable _URLEncodedPassword;
38 OFString *_Nullable _URLEncodedQuery, *_Nullable _URLEncodedFragment;
39 OF_RESERVE_IVARS(
OFURL, 4)
45 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *scheme;
50 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
56 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *host;
61 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
67 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFNumber *port;
72 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *user;
77 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
83 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *password;
88 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
94 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *path;
99 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
107 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
115 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
121 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *query;
126 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
140 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
146 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *fragment;
151 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
157 @property (readonly, nonatomic)
OFString *
string;
162 @property (readonly, nonatomic)
OFURL *URLByStandardizingPath;
172 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
182 + (instancetype)URLWithString: (
OFString *)string;
192 + (instancetype)URLWithString: (
OFString *)string relativeToURL: (
OFURL *)URL;
204 + (instancetype)fileURLWithPath: (
OFString *)path;
214 + (instancetype)fileURLWithPath: (
OFString *)path
215 isDirectory: (
bool)isDirectory;
224 - (instancetype)initWithString: (
OFString *)string;
234 - (instancetype)initWithString: (
OFString *)string relativeToURL: (
OFURL *)URL;
247 - (instancetype)initFileURLWithPath: (
OFString *)path;
258 - (instancetype)initFileURLWithPath: (
OFString *)path
259 isDirectory: (
bool)isDirectory;
273 - (
OFURL *)URLByAppendingPathComponent: (
OFString *)component;
285 - (
OFURL *)URLByAppendingPathComponent: (
OFString *)component
286 isDirectory: (
bool)isDirectory;
289 @interface OFCharacterSet (URLCharacterSets)
290 #ifdef OF_HAVE_CLASS_PROPERTIES
291 @property (
class, readonly, nonatomic)
293 @property (
class, readonly, nonatomic)
295 @property (
class, readonly, nonatomic)
297 @property (
class, readonly, nonatomic)
299 @property (
class, readonly, nonatomic)
301 @property (
class, readonly, nonatomic)
303 @property (
class, readonly, nonatomic)
305 @property (
class, readonly, nonatomic)
370 extern bool of_url_is_ipv6_host(
OFString *host);
375 OF_ASSUME_NONNULL_END
377 #import "OFMutableURL.h"
An abstract class for storing objects in an array.
Definition: OFArray.h:92
A class cluster representing a character set.
Definition: OFCharacterSet.h:29
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:58
Provides a way to store a number in an object.
Definition: OFNumber.h:49
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A class for handling strings.
Definition: OFString.h:132
A class for parsing URLs and accessing parts of it.
Definition: OFURL.h:34
A protocol for the creation of copies.
Definition: OFObject.h:1187
A protocol for the creation of mutable copies.
Definition: OFObject.h:1208
A protocol for serializing objects.
Definition: OFSerialization.h:29