ObjFW
|
A class for parsing URLs and accessing parts of it. More...
#include <OFURL.h>
Public Member Functions | |
id | initWithString: (OFString *str) |
id | initWithString:relativeToURL: (OFString *str,[relativeToURL] OFURL *url) |
OFString * | scheme () |
void | setScheme: (OFString *scheme) |
OFString * | host () |
void | setHost: (OFString *host) |
uint16_t | port () |
void | setPort: (uint16_t port) |
OFString * | user () |
void | setUser: (OFString *user) |
OFString * | password () |
void | setPassword: (OFString *password) |
OFString * | path () |
void | setPath: (OFString *path) |
OFString * | parameters () |
void | setParameters: (OFString *parameters) |
OFString * | query () |
void | setQuery: (OFString *query) |
OFString * | fragment () |
void | setFragment: (OFString *fragment) |
Static Public Member Functions | |
id | URLWithString: (OFString *str) |
id | URLWithString:relativeToURL: (OFString *str,[relativeToURL] OFURL *url) |
Properties | |
OFString * | scheme |
OFString * | host |
uint16_t | port |
OFString * | user |
OFString * | password |
OFString * | path |
OFString * | parameters |
OFString * | query |
OFString * | fragment |
A class for parsing URLs and accessing parts of it.
OFString* OFURL::fragment | ( | ) | [virtual] |
OFString* OFURL::host | ( | ) | [virtual] |
id OFURL::initWithString: | ( | OFString* | str | ) | [virtual] |
OFString* OFURL::parameters | ( | ) | [virtual] |
OFString* OFURL::password | ( | ) | [virtual] |
OFString* OFURL::path | ( | ) | [virtual] |
uint16_t OFURL::port | ( | ) | [virtual] |
OFString* OFURL::query | ( | ) | [virtual] |
OFString* OFURL::scheme | ( | ) | [virtual] |
void OFURL::setFragment: | ( | OFString* | fragment | ) | [virtual] |
Set the fragment part of the URL.
fragment | The fragment part of the URL to set |
void OFURL::setHost: | ( | OFString* | host | ) | [virtual] |
Set the host part of the URL.
host | The host part of the URL to set |
void OFURL::setParameters: | ( | OFString* | parameters | ) | [virtual] |
Set the parameters part of the URL.
parameters | The parameters part of the URL to set |
void OFURL::setPassword: | ( | OFString* | password | ) | [virtual] |
Set the password part of the URL.
password | The password part of the URL to set |
void OFURL::setPath: | ( | OFString* | path | ) | [virtual] |
Set the path part of the URL.
path | The path part of the URL to set |
void OFURL::setPort: | ( | uint16_t | port | ) | [virtual] |
Set the port part of the URL.
port | The port part of the URL to set |
void OFURL::setQuery: | ( | OFString* | query | ) | [virtual] |
Set the query part of the URL.
query | The query part of the URL to set |
void OFURL::setScheme: | ( | OFString* | scheme | ) | [virtual] |
Set the scheme part of the URL.
scheme | The scheme part of the URL to set |
void OFURL::setUser: | ( | OFString* | user | ) | [virtual] |
Set the user part of the URL.
user | The user part of the URL to set |
id OFURL::URLWithString: | ( | OFString* | str | ) | [static, virtual] |
str | A string describing a URL |
id OFURL::URLWithString:relativeToURL: | ( | OFString* | str, |
[relativeToURL] OFURL* | url | ||
) | [static, virtual] |
str | A string describing a URL |
url | An URL to which the string is relative |
OFString* OFURL::user | ( | ) | [virtual] |