最新消息
资源图标

X2插件 Custom HTTP Client headers 1.0.0 Alpha

没有下载许可
您最多可以在24小时内下载0个文件
兼容版本2.x
  1. 2.2
语言
英文(English)
额外要求
PHP 7.1 or newer
This simple add-on just allows add/set custom headers to all HTTP requests from XenForo via src/config.php. For example, you may want set Accept-Language for using another language, if remote web-resource respects this header.

Example usage (src/config.php):
PHP:
<?php

// database options ...
// additional options for caching (for example), proxying all HTTP requests and another...

$config['http']['headers'] = [
    // Prefers russian language; if not present - then english or any another language
    // More details: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
    'Accept-Language' => 'ru, en;q=0.9, *:q=0.5'
];
作者
XFNULL
下载
0
查看
112
首次发布
最后更新
评分
0.00 星 0 星

来自XFNULL的更多资源

顶部