mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
* HTTP.cpp : add comments, update test case
This commit is contained in:
parent
323f74c43a
commit
02ac638bd4
2 changed files with 17 additions and 4 deletions
|
@ -104,6 +104,18 @@ int main() {
|
|||
assert(url->query == "");
|
||||
delete url;
|
||||
|
||||
url = new URL;
|
||||
assert(url->parse("http://user:password@site.com:84/asdasd/@17#frag") == true);
|
||||
assert(url->schema == "http");
|
||||
assert(url->user == "user");
|
||||
assert(url->pass == "password");
|
||||
assert(url->host == "site.com");
|
||||
assert(url->port == 84);
|
||||
assert(url->path == "/asdasd/@17");
|
||||
assert(url->query == "");
|
||||
assert(url->frag == "frag");
|
||||
delete url;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue