Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: 新增 requestReplace 拦截器,目前只支持替换请求头。 #297

Merged

Conversation

wangliang181230
Copy link
Contributor

feature: 新增 requestReplace 拦截器,目前只支持替换请求头。


该拦截器配置方式:

{
    "github.com": {
        "/xxxxx/yyyy": {
            "requestReplace": {
                "headers": {
                    "host": "gitee.com", // 替换请求头
                    "cookie": "[remove]", // 移除请求头(必须配置为 `[remove]` 才会移除,不能配置为null)
                }
            }
        }
    }
}

@wangliang181230 wangliang181230 merged commit f4e00a5 into docmirror:master Apr 16, 2024
@wangliang181230 wangliang181230 deleted the feature-requestReplace branch April 16, 2024 04:58
@wangliang181230 wangliang181230 added this to the 1.8.1 milestone Apr 18, 2024
@wangliang181230 wangliang181230 added the Feature 新特性PR label Apr 18, 2024
@wangliang181230 wangliang181230 changed the title feature: 新增 requestReplace 拦截器,目前只支持替换请求头。 feature: 新增 requestReplace 拦截器,目前只支持替换请求头。 Apr 18, 2024
@wangliang181230 wangliang181230 added v1.8.1 1.8.1版本 and removed v1.8.1 1.8.1版本 labels Apr 21, 2024
@wangliang181230 wangliang181230 added the v1.8.1 1.8.1版本 label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 新特性PR v1.8.1 1.8.1版本
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant