ObjFW
|
A class for parsing URLs and accessing parts of it. More...
#import <OFURL.h>
Public Member Functions | |
(id) | - initWithString: |
Initializes an already allocated OFURL with the specified string. | |
(id) | - initWithString:relativeToURL: |
Initializes an already allocated OFURL with the specified string and relative URL. | |
(OFString *) | - scheme |
Returns the scheme part of the URL. | |
(void) | - setScheme: |
Set the scheme part of the URL. | |
(OFString *) | - host |
Returns the host part of the URL. | |
(void) | - setHost: |
Set the host part of the URL. | |
(uint16_t) | - port |
Returns the port part of the URL. | |
(void) | - setPort: |
Set the port part of the URL. | |
(OFString *) | - user |
Returns the user part of the URL. | |
(void) | - setUser: |
Set the user part of the URL. | |
(OFString *) | - password |
Returns the password part of the URL. | |
(void) | - setPassword: |
Set the password part of the URL. | |
(OFString *) | - path |
Returns the path part of the URL. | |
(void) | - setPath: |
Set the path part of the URL. | |
(OFString *) | - parameters |
Returns the parameters part of the URL. | |
(void) | - setParameters: |
Set the parameters part of the URL. | |
(OFString *) | - query |
Returns the query part of the URL. | |
(void) | - setQuery: |
Set the query part of the URL. | |
(OFString *) | - fragment |
Returns the fragment part of the URL. | |
(void) | - setFragment: |
Set the fragment part of the URL. | |
(OFString *) | - string |
Returns the URL as a string. | |
Static Public Member Functions | |
(id) | + URLWithString: |
(id) | + URLWithString:relativeToURL: |
A class for parsing URLs and accessing parts of it.
- (OFString*) fragment |
Returns the fragment part of the URL.
- (OFString*) host |
Returns the host part of the URL.
- (id) initWithString: | (OFString*) | string |
- (OFString*) parameters |
Returns the parameters part of the URL.
- (OFString*) password |
Returns the password part of the URL.
- (OFString*) path |
Returns the path part of the URL.
- (uint16_t) port |
Returns the port part of the URL.
- (OFString*) query |
Returns the query part of the URL.
- (OFString*) scheme |
Returns the scheme part of the URL.
- (void) setFragment: | (OFString*) | fragment |
Set the fragment part of the URL.
fragment | The fragment part of the URL to set |
- (void) setHost: | (OFString*) | host |
Set the host part of the URL.
host | The host part of the URL to set |
- (void) setParameters: | (OFString*) | parameters |
Set the parameters part of the URL.
parameters | The parameters part of the URL to set |
- (void) setPassword: | (OFString*) | password |
Set the password part of the URL.
password | The password part of the URL to set |
- (void) setPath: | (OFString*) | path |
Set the path part of the URL.
path | The path part of the URL to set |
- (void) setPort: | (uint16_t) | port |
Set the port part of the URL.
port | The port part of the URL to set |
- (void) setQuery: | (OFString*) | query |
Set the query part of the URL.
query | The query part of the URL to set |
- (void) setScheme: | (OFString*) | scheme |
Set the scheme part of the URL.
scheme | The scheme part of the URL to set |
- (void) setUser: | (OFString*) | user |
Set the user part of the URL.
user | The user part of the URL to set |
- (OFString *) string |
Returns the URL as a string.
+ (id) URLWithString: | (OFString*) | string |
Creates a new URL with the specified string.
string | A string describing a URL |
Creates a new URL with the specified string relative to the specified URL.
string | A string describing a URL |
URL | An URL to which the string is relative |
- (OFString*) user |
Returns the user part of the URL.