[PR #4275] [MERGED] Add http2http client plugin with hostHeaderRewrite and requestHeaders support #4955

Closed
opened 2026-05-05 14:51:57 -06:00 by gitea-mirror · 0 comments
Owner

📋 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: devHead: add-http2http-plugin


📝 Commits (5)

  • 13198a4 Add http2http client plugin with hostHeaderRewrite and requestHeaders support
  • 3929529 Add license information to newly added files
  • 561132f Add http2http plugin
  • 56c8fd2 add e2e tests for http2http client plugin
  • 496077d add 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 http2http client plugin and updates configuration options to support hostHeaderRewrite and requestHeaders.

  • New Plugin Implementation: Adds a new file pkg/plugin/client/http2http.go implementing the http2http client plugin. This plugin supports rewriting the host header and setting custom request headers, similar to the existing http2https plugin.
  • Configuration Update: Modifies pkg/config/v1/plugin.go to include the http2http plugin in the list of client plugins. Adds HTTP2HTTPPluginOptions struct to support hostHeaderRewrite and requestHeaders configuration options for the http2http plugin.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/4275 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 6/12/2024 **Status:** ✅ Merged **Merged:** 6/12/2024 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `add-http2http-plugin` --- ### 📝 Commits (5) - [`13198a4`](https://github.com/fatedier/frp/commit/13198a4d1d557559998f7a46f63367bcff8ef2ba) Add http2http client plugin with hostHeaderRewrite and requestHeaders support - [`3929529`](https://github.com/fatedier/frp/commit/39295292f1ad3415af38f417383fbae884794e14) Add license information to newly added files - [`561132f`](https://github.com/fatedier/frp/commit/561132f867dbfa3d88fbcac5855ab09a5442b057) Add http2http plugin - [`56c8fd2`](https://github.com/fatedier/frp/commit/56c8fd2c4cb1bdafb58bd766f439db913709d7f1) add e2e tests for http2http client plugin - [`496077d`](https://github.com/fatedier/frp/commit/496077db7e1bb6e30038a335f4a72e6c0f638e0a) add http2http plugin config ### 📊 Changes **5 files changed** (+186 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Implements the `http2http` client plugin and updates configuration options to support `hostHeaderRewrite` and `requestHeaders`. - **New Plugin Implementation**: Adds a new file `pkg/plugin/client/http2http.go` implementing the `http2http` client plugin. This plugin supports rewriting the host header and setting custom request headers, similar to the existing `http2https` plugin. - **Configuration Update**: Modifies `pkg/config/v1/plugin.go` to include the `http2http` plugin in the list of client plugins. Adds `HTTP2HTTPPluginOptions` struct to support `hostHeaderRewrite` and `requestHeaders` configuration options for the `http2http` plugin. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/fatedier/frp?shareId=d3653e82-682b-4260-86c7-569165340853). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:51:58 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4955
No description provided.