18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#import "OFObject.h"
#import "OFCharacterSet.h"
#import "OFSerialization.h"
OF_ASSUME_NONNULL_BEGIN
@class OFArray OF_GENERIC(ObjectType);
@class OFNumber;
@class OFString;
/**
* @class OFURL OFURL.h ObjFW/OFURL.h
*
* @brief A class for parsing URLs and accessing parts of it.
|
>
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#import "OFObject.h"
#import "OFCharacterSet.h"
#import "OFSerialization.h"
OF_ASSUME_NONNULL_BEGIN
@class OFArray OF_GENERIC(ObjectType);
@class OFDictionary OF_GENERIC(KeyType, ObjectType);
@class OFNumber;
@class OFString;
/**
* @class OFURL OFURL.h ObjFW/OFURL.h
*
* @brief A class for parsing URLs and accessing parts of it.
|
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
/**
* @brief The query part of the URL in URL-encoded form.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *URLEncodedQuery;
/**
* @brief The fragment part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *fragment;
/**
* @brief The fragment part of the URL in URL-encoded form.
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
/**
* @brief The query part of the URL in URL-encoded form.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *URLEncodedQuery;
/**
* @brief The query part of the URL as a dictionary.
*
* For example, a query like `key1=value1&key2=value2` would correspond to the
* following dictionary:
*
* @{
* @"key1": "value1",
* @"key2": "value2"
* }
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFDictionary OF_GENERIC(OFString *, OFString *) *queryDictionary;
/**
* @brief The fragment part of the URL.
*/
@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *fragment;
/**
* @brief The fragment part of the URL in URL-encoded form.
|
286
287
288
289
290
291
292
293
294
295
296
297
298
299
|
@property (class, readonly, nonatomic)
OFCharacterSet *URLPasswordAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLPathAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLQueryAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLFragmentAllowedCharacterSet;
#endif
/**
* @brief Returns the characters allowed in the scheme part of a URL.
*
* @return The characters allowed in the scheme part of a URL.
|
>
>
|
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
|
@property (class, readonly, nonatomic)
OFCharacterSet *URLPasswordAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLPathAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLQueryAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLQueryKeyValueAllowedCharacterSet;
@property (class, readonly, nonatomic)
OFCharacterSet *URLFragmentAllowedCharacterSet;
#endif
/**
* @brief Returns the characters allowed in the scheme part of a URL.
*
* @return The characters allowed in the scheme part of a URL.
|
331
332
333
334
335
336
337
338
339
340
341
342
343
344
|
/**
* @brief Returns the characters allowed in the query part of a URL.
*
* @return The characters allowed in the query part of a URL.
*/
+ (OFCharacterSet *)URLQueryAllowedCharacterSet;
/**
* @brief Returns the characters allowed in the fragment part of a URL.
*
* @return The characters allowed in the fragment part of a URL.
*/
+ (OFCharacterSet *)URLFragmentAllowedCharacterSet;
@end
|
>
>
>
>
>
>
>
>
|
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
/**
* @brief Returns the characters allowed in the query part of a URL.
*
* @return The characters allowed in the query part of a URL.
*/
+ (OFCharacterSet *)URLQueryAllowedCharacterSet;
/**
* @brief Returns the characters allowed in a key/value in the query part of a
* URL.
*
* @return The characters allowed in a key/value in the query part of a URL.
*/
+ (OFCharacterSet *)URLQueryKeyValueAllowedCharacterSet;
/**
* @brief Returns the characters allowed in the fragment part of a URL.
*
* @return The characters allowed in the fragment part of a URL.
*/
+ (OFCharacterSet *)URLFragmentAllowedCharacterSet;
@end
|