mirror of
https://github.com/YGGverse/net-php.git
synced 2026-03-31 17:15:35 +00:00
fix data types, add fragment support, draft absolute method
This commit is contained in:
parent
bbdc276db6
commit
3329a90819
2 changed files with 145 additions and 18 deletions
10
README.md
10
README.md
|
|
@ -78,12 +78,18 @@ $address = new \Yggverse\Net\Address(
|
|||
);
|
||||
|
||||
var_dump(
|
||||
$address->getScheme() // Just scheme substring
|
||||
$address->getScheme() // Scheme substring
|
||||
);
|
||||
|
||||
...
|
||||
|
||||
$subject = new \Yggverse\Net\Address(
|
||||
'./some/uri'
|
||||
);
|
||||
|
||||
var_dump(
|
||||
$address->absolute(
|
||||
'./some/uri'
|
||||
$subject
|
||||
) // return http://yo.ygg/some/uri
|
||||
);
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue