©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PECL pecl_http >= 0.10.0)
$headers
[, bool $append
= false
] )$message
] )$raw_message
[, string $class_name
= "HttpMessage"
]] )$message_type
[, string $class_name
= "HttpMessage"
] )$raw_message
[, string $class_name
= "HttpMessage"
]] )$header
)$magic_file
[, int $magic_mode
= MAGIC_MIME
] )$message
[, bool $top
= true
] )$body
)$headers
)$version
)$method
)$url
)$code
)$status
)$type
)$include_parent
= false
] )Modifiers | Type | Name | Description |
---|---|---|---|
protected | int | type | message type |
protected | string | body | message body |
protected | float | httpVersion | HTTP protocol version |
protected | array | headers | message headers |
protected | string | requestMethod | request method name |
protected | requestUrl | string | request URL |
protected | int | responseCode | response code |
protected | string | responseStatus | response status message |
protected | HttpMessage | parentMessage | reference to parent message |
Note:
None of these default properties can be accessed by reference, array key/index notation nor be used in increment or decrement operations.
Type | Name | Description |
---|---|---|
int | TYPE_NONE | message has is of no specific type |
int | TYPE_REQUEST | message is a request style HTTP message |
int | TYPE_RESPONSE | message is a response style HTTP message |