URL
About 1 min
URL
- Full name:
\Hazaar\HTTP\URL
- This class implements:
\ArrayAccess
Properties
common_ports
public array<string,int> $common_ports
parts
private array<string,int|string> $parts
params
private array<string,int|string> $params
Methods
__construct
public __construct(?string $url = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$url | ?string |
__get
public __get(string $key): int|string
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
__set
public __set(string $key, int|string $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | int|string |
__toString
public __toString(): string
scheme
public scheme(?string $value = null): string
Parameters:
Parameter | Type | Description |
---|---|---|
$value | ?string |
host
public host(?string $value = null): string
Parameters:
Parameter | Type | Description |
---|---|---|
$value | ?string |
port
public port(?int $value = null): int
Parameters:
Parameter | Type | Description |
---|---|---|
$value | ?int |
lookupPort
public lookupPort(string $scheme): ?int
Parameters:
Parameter | Type | Description |
---|---|---|
$scheme | string |
user
public user(): string
pass
public pass(): string
path
public path(): string
params
public params(): array<string,int|string>
hash
public hash(): string
get
public get(string $key): int|string
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
set
public set(string $key, int|string $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | int|string |
setParams
public setParams(array<string,int|string> $array): void
Parameters:
Parameter | Type | Description |
---|---|---|
$array | array<string,int|string> |
offsetExists
public offsetExists(mixed $offset): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$offset | mixed |
offsetGet
public offsetGet(mixed $offset): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$offset | mixed |
offsetSet
public offsetSet(mixed $key, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | mixed | |
$value | mixed |
offsetUnSet
public offsetUnSet(mixed $key): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | mixed |
isSecure
public isSecure(): bool
toString
public toString(): string
queryString
public queryString(): ?string
Automatically generated on 2024-11-14