[wordpress插件] Beam光束

wordpress 插件 文章 2020-03-02 09:50 632 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

Provides an efficient streaming WordPress HTTP API transport with support for tunneled proxy connections.

提供高效的流式WordPress HTTP API传输,并支持隧道式代理连接。

Drop-in Replacement

直接替换

Leverage all the benefits of Beam without having to modify any existing wp_remote_* WordPress HTTP API calls.

利用Beam的所有优势,而无需修改任何现有的 wp_remote _ * WordPress HTTP API调用。

Honors all standard WordPress HTTP API request arguments, filters, and actions.

认可所有标准WordPress HTTP API请求参数,过滤器和操作。

For more details around the WordPress HTTP API please see https://codex.wordpress.org/HTTP_API the codex site.

有关WordPress HTTP API的更多详细信息,请访问https://codex.wordpress.org/HTTP_API编解码器站点。

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.

Beam的设计充分考虑了发送到连接和从连接读取的内容的效率和准确性。

    • String concatenation is kept to a minimal.
    • 将字符串连接保持为最少。

    • PHP streams buffered read and writes minimize network traffic.
    • PHP流缓冲的读写操作可最大程度地减少网络流量。

    • HTTP response is read without regular expression parsing.
    • 读取HTTP响应时不进行正则表达式解析。

    • Folded and multiple value HTTP response headers are supported.
    • 支持折叠式和多值HTTP响应标头。

    • Tolerant handling of LF only end of line markers while still supporting specification standard CRLF.
    • 仅允许LF行尾标记,同时仍支持规范标准CRLF。

    Built-in PHP stream filters remove the need for user space implementations resulting in better memory management and performance.

    内置的PHP流过滤器消除了对用户空间实现的需求,从而实现了更好的内存管理和性能。

      • 'dechunk' Decodes HTTP 1.1 Transfer-Encoding: chunked responses (requires PHP 5.3+).
      • 'dechunk'解码HTTP 1.1 Transfer-Encoding:分块响应(需要PHP 5.3 +)。

      • 'zlib.inflate' Inflates Content-Encoding: gzip responses (requires zlib extension).
      • 'zlib.inflate'扩展 Content-Encoding:gzip 响应(需要zlib扩展名)。

      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.

      Beam默认情况下使用这些过滤器来减少网络流量并即时更改响应,而无需事先读取整个响应。

      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.

      默认情况下,使用TLS建立HTTPS连接,以提高与SSL的安全性。

      Beam provides filter 'stream_crypto_method' to change the crypto method in use based on the requested URL.

      Beam提供过滤器'stream_crypto_method',以根据请求的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.

      可以建立隧道代理连接,以通过HTTP代理连接到HTTPS站点,并避免“ 503 Service Unavailable” HTTP错误。

      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.

      现在,可以在使用代理时更新,安装和搜索全部使用HTTPS URL的WordPress和插件,而无需安装PHP cURL扩展名。

      Beam provides filter 'proxy_tunnel' to change which requests require a tunneled proxy connection.

      Beam提供了过滤器'proxy_tunnel',以更改需要隧道代理连接的请求。

安装步骤

    1. Upload beam.php file to /wp-content/plugins/ directory
    2. beam.php 文件上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. All WordPress HTTP API requests will be handled by Beam.
    6. 所有WordPress HTTP API请求将由Beam处理。

下载地址
https://downloads.wordpress.org/plugin/beam.zip
-EOF-

AI助手支持GPT4.0