內容簡介
提供高效的 WordPress HTTP API 傳輸功能,支援通過代理連接的隧道傳輸。
即插即用替換
利用所有 Beam 的好處,無需修改任何現有的 wp_remote_* WordPress HTTP API 呼叫。
遵循所有標準 WordPress HTTP API 請求參數、過濾器和操作。詳細了解 WordPress HTTP API 的更多詳細信息,請參見 https://codex.wordpress.org/HTTP_API codex 網站。
必要插件兼容
可以安裝為「必要插件」,因此功能始終處於使用狀態。對於站點維護者來說,這是一個方便的選項。
效率
Beam 的設計考慮到對連接發送和讀取的內容進行高效且準確的處理。
最小化字符串連接。
PHP 流緩衝讀寫最小化網絡流量。
HTTP 响應無需正則表達式解析即可讀取。
支持折疊和多值 HTTP 响應標頭。
寬容處理只有 LF 的行尾標記,同時仍支持規範標準 CRLF。
內置 PHP 流過濾器可消除對用戶空間實現的需求,從而實現更好的內存管理和性能。
'dechunk' 解碼 HTTP 1.1 的 Transfer-Encoding: chunked 响應(需要 PHP 5.3+)。
'zlib.inflate' 解壓縮 Content-Encoding: gzip 响應(需要 zlib 擴展)。
Beam 預設使用這些過濾器減少網絡流量,在不需要預先讀取整個響應的情況下即可在運行期間更改響應。高度可能已經有這些功能可用;這很有道理。
安全性
預設使用 TLS 建立 HTTPS 連接,以改進安全性而非 SSL。
Beam 提供了過濾器 'stream_crypto_method',可根據請求的 URL 更改使用的加密方法。
代理支援
可以建立隧道代理連接,以連接到 HTTP 代理上的 HTTPS 站點並避免「503服務不可用」HTTP錯誤。現在可以更新、安裝和搜索 WordPress 和插件,這些都使用 HTTPS URL,而在使用代理時無需安裝 PHP cURL 擴展。
Beam 提供過濾器 'proxy_tunnel',以更改哪些請求需要使用隧道代理連接。
外掛標籤
開發者團隊
原文外掛簡介
Provides an efficient streaming WordPress HTTP API transport with support for tunneled proxy connections.
Drop-in Replacement
Leverage all the benefits of Beam without having to modify any existing wp_remote_* WordPress HTTP API calls.
Honors all standard WordPress HTTP API request arguments, filters, and actions. For more details around the WordPress HTTP API please see https://codex.wordpress.org/HTTP_API the codex site.
Must Use Plugin Compatible
May be installed as a “Must Use” plugin so the functionality is always in use. A handy option for site maintainers.
Efficiency
Beam was designed with efficiency and accuracy of content sent to and read from connections in mind.
String concatenation is kept to a minimal.
PHP streams buffered read and writes minimize network traffic.
HTTP response is read without regular expression parsing.
Folded and multiple value HTTP response headers are supported.
Tolerant handling of LF only end of line markers while still supporting specification standard CRLF.
Built-in PHP stream filters remove the need for user space implementations resulting in better memory management and performance.
'dechunk' Decodes HTTP 1.1 Transfer-Encoding: chunked responses (requires PHP 5.3+).
'zlib.inflate' Inflates Content-Encoding: gzip responses (requires zlib extension).
Beam uses these filters by default to cut down on network traffic and alter the response on the fly without needing to read in the entire response before hand. It is highly likely that these capabilities are already available; it makes sense to use them.
Security
Uses TLS, by default, to establish HTTPS connections for improved security versus SSL.
Beam provides filter 'stream_crypto_method' to change the crypto method in use based on the requested URL.
Proxy Support
Tunneled proxy connections may be established to connect to HTTPS sites over an HTTP proxy and avoid “503 Service Unavailable” HTTP errors. Now it’s possible to update, install, and search WordPress and plugins which all use HTTPS URLs while a proxy is in use without having to install the PHP cURL extension.
Beam provides filter 'proxy_tunnel' to change which requests require a tunneled proxy connection.
