©
Ce document utilise Manuel du site Web PHP chinois Libérer
(PECL pecl_http >= 0.7.0)
$name
] )$magic_file
[, int $magic_mode
= MAGIC_MIME
] )$url
[, array $params
[, bool $session
= false
[, int $status
]]]] )$clean_ob
= true
] )$bytes
)$cache
)$control
[, int $max_age
= 0
[, bool $must_revalidate
= true
]] )$filename
[, bool $inline
= false
] )$content_type
)$data
)$etag
)$file
)$gzip
)$name
[, mixed $value
[, bool $replace
= true
]] )$timestamp
)$stream
)$seconds
)$status
)Modifiers | Type | Name | Description |
---|---|---|---|
protected | boolean | cache | whether caching the response should be attempted |
protected | boolean | gzip | whether the sent entity should be gzip'ed on the fly |
protected | string | eTag | the generated or custom ETag |
protected | integer | lastModified | the generated or custom timestamp of last modification |
protected | string | cacheControl | Cache-Control setting |
protected | string | contentType | the Content-Type of the sent entity |
protected | string | contentDisposition | the Content-Disposition of the sent entity |
protected | integer | bufferSize | the chunk buffer size used for throttling |
protected | double | throttleDelay | the seconds to delay when throttling |
Type | Name | Description |
---|---|---|
integer | REDIRECT | guess applicable redirect method |
integer | REDIRECT_PERM | permanent redirect (301 Moved permanently) |
integer | REDIRECT_FOUND | standard redirect (302 Found) |
integer | REDIRECT_POST | redirect applicable to POST requests (303 See other) |
integer | REDIRECT_PROXY | proxy redirect (305 Use proxy) |
integer | REDIRECT_TEMP | temporary redirect (307 Temporary Redirect) |