|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Helldar\Support\Facades\Http; |
|
4
|
|
|
|
|
5
|
|
|
use Helldar\Support\Facades\Facade; |
|
6
|
|
|
use Helldar\Support\Helpers\Http\Builder as Support; |
|
7
|
|
|
use Psr\Http\Message\UriInterface; |
|
8
|
|
|
|
|
9
|
|
|
/** |
|
10
|
|
|
* @method static int|null getPort() |
|
11
|
|
|
* @method static string getAuthority() |
|
12
|
|
|
* @method static string getBaseUrl() |
|
13
|
|
|
* @method static string getDomain() |
|
14
|
|
|
* @method static string getFragment() |
|
15
|
|
|
* @method static string getHost() |
|
16
|
|
|
* @method static string getPassword() |
|
17
|
|
|
* @method static string getPath() |
|
18
|
|
|
* @method static string getQuery() |
|
19
|
|
|
* @method static string getScheme() |
|
20
|
|
|
* @method static string getSubDomain() |
|
21
|
|
|
* @method static string getUser() |
|
22
|
|
|
* @method static string getUserInfo() |
|
23
|
|
|
* @method static string toUrl() |
|
24
|
|
|
* @method static Support fromPsrUrl(UriInterface $uri) |
|
25
|
|
|
* @method static Support parse($url, int $component = Support::PHP_URL_ALL) |
|
26
|
|
|
* @method static Support parsed(array $parsed) |
|
27
|
|
|
* @method static Support putQuery(string $key, mixed $value) |
|
28
|
|
|
* @method static Support removeQuery(string $key) |
|
29
|
|
|
* @method static Support same() |
|
30
|
|
|
* @method static Support withFragment(string $fragment) |
|
31
|
|
|
* @method static Support withHost(string $host) |
|
32
|
|
|
* @method static Support withPath(string $path) |
|
33
|
|
|
* @method static Support withPort(int|null $host) |
|
34
|
|
|
* @method static Support withQuery(array|string $path) |
|
35
|
|
|
* @method static Support withScheme(string $scheme) |
|
36
|
|
|
* @method static Support withUserInfo(string $user, string $password = null) |
|
37
|
|
|
* @method static UriInterface toPsrUrl() |
|
38
|
|
|
*/ |
|
39
|
|
|
class Builder extends Facade |
|
40
|
|
|
{ |
|
41
|
|
|
protected static function getFacadeAccessor() |
|
42
|
|
|
{ |
|
43
|
|
|
return Support::class; |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|