protected string $content
protected string $crlf = '"\r\n"'
public __construct(?string $content, ?string $content_type, array $headers = []): void
Parameter | Type | Description |
---|
$content | string | |
$content_type | string | |
$headers | array | |
public setHeaders(array $headers): bool
Parameter | Type | Description |
---|
$headers | array | |
public setHeader(string $header, string $content): void
Parameter | Type | Description |
---|
$header | string | |
$content | string | |
public getHeader(string $header): string
Parameter | Type | Description |
---|
$header | string | |
public setContentType(string $type): void
Parameter | Type | Description |
---|
$type | string | |
public getContentType(): string
public setDescription(string $text): void
Parameter | Type | Description |
---|
$text | string | |
public setContent(string $content): void
Parameter | Type | Description |
---|
$content | string | |
public getContent(): string
public detect_break(string $content, string $default = '"\r\n"'): string
Parameter | Type | Description |
---|
$content | string | |
$default | string | |
public encode(int $width_limit = 76): string
Parameter | Type | Description |
---|
$width_limit | int | |
public decode(string $data): Part
Parameter | Type | Description |
---|
$data | string | |
public jsonSerialize(): mixed
Generated by Hazaar API Doc Generator