mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #4275] [MERGED] Add http2http client plugin with hostHeaderRewrite and requestHeaders support #4955
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4955
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/4275
Author: @fatedier
Created: 6/12/2024
Status: ✅ Merged
Merged: 6/12/2024
Merged by: @fatedier
Base:
dev← Head:add-http2http-plugin📝 Commits (5)
13198a4Add http2http client plugin with hostHeaderRewrite and requestHeaders support3929529Add license information to newly added files561132fAdd http2http plugin56c8fd2add e2e tests for http2http client plugin496077dadd http2http plugin config📊 Changes
5 files changed (+186 additions, -8 deletions)
View changed files
📝
Release.md(+2 -8)📝
conf/frpc_full_example.toml(+10 -0)📝
pkg/config/v1/plugin.go(+10 -0)➕
pkg/plugin/client/http2http.go(+91 -0)📝
test/e2e/v1/plugin/client.go(+73 -0)📄 Description
Implements the
http2httpclient plugin and updates configuration options to supporthostHeaderRewriteandrequestHeaders.pkg/plugin/client/http2http.goimplementing thehttp2httpclient plugin. This plugin supports rewriting the host header and setting custom request headers, similar to the existinghttp2httpsplugin.pkg/config/v1/plugin.goto include thehttp2httpplugin in the list of client plugins. AddsHTTP2HTTPPluginOptionsstruct to supporthostHeaderRewriteandrequestHeadersconfiguration options for thehttp2httpplugin.For more details, open the Copilot Workspace session.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.