Namespace
Runtime\PS\HTTP\SAPI
Package http carries the HTTP\Client and HTTP\Request bindings, the outbound HTTP surface a script reaches where PHP has the curl_* family.
Description
Package http carries the HTTP\Client and HTTP\Request bindings, the outbound HTTP surface a script reaches where PHP has the curl_* family.
The types a script sees are facades over net/http and not the net/http types themselves. Registration is not a method allowlist: every exported method and field of the value a constructor returns is reachable from PHP, and embedding *net/http.Request would publish the whole of net/http as methods on HTTP\Request. Each facade holds its net/http value in a named unexported field, and the methods below are the whole surface.
- Package
stdlib/ps/httpgodoc
Functions
A call writes the bare name or the name under this area:
\Runtime\PS\HTTP\SAPI\apache_request_headers().