[PR #924] [MERGED] Allow removal of prefix when proxying to another server (#630) #1150

Closed
opened 2025-12-29 08:34:59 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/924
Author: @nudejustin
Created: 4/19/2023
Status: Merged
Merged: 4/23/2023
Merged by: @StefH

Base: masterHead: master


📝 Commits (9)

  • d18289c #630 Allow removal of prefix when proxying to another server
  • 55a8929 #630 Rename replace to replace settings and ensure properties used in place of fields
  • 9e6cfb6 #630 Update replace settings type name to ProxyUrlReplaceSettings
  • b138d6d #630 Add admin model and update settings parser to parse new values
  • 5183ce2 Fix formatting issues
  • 3529951 #630 Ensure json mapping between admin model and internal model takes place
  • 75fb04b #630 Refactor parsing and structure of extracting new proxy url
  • 7f6d789 Reduce function complexity
  • 2ef8d93 #630 Fix line length issues and remove try prefix from parser methods

📊 Changes

8 files changed (+350 additions, -212 deletions)

View changed files

📝 src/WireMock.Net.Abstractions/Admin/Settings/ProxyAndRecordSettingsModel.cs (+75 -70)
src/WireMock.Net.Abstractions/Admin/Settings/ProxyUrlReplaceSettingsModel.cs (+18 -0)
📝 src/WireMock.Net/Proxy/ProxyHelper.cs (+3 -1)
📝 src/WireMock.Net/Settings/ProxyAndRecordSettings.cs (+96 -90)
src/WireMock.Net/Settings/ProxyUrlReplaceSettings.cs (+17 -0)
📝 src/WireMock.Net/Settings/WireMockServerSettingsParser.cs (+64 -22)
📝 src/WireMock.Net/Util/TinyMapperUtils.cs (+30 -28)
📝 test/WireMock.Net.Tests/WireMockServer.Proxy.cs (+47 -1)

📄 Description

Adds a new set of properties to the proxy server settings that allow prefix url rewriting in order to resolve issue https://github.com/WireMock-Net/WireMock.Net/issues/630


🔄 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/wiremock/WireMock.Net/pull/924 **Author:** [@nudejustin](https://github.com/nudejustin) **Created:** 4/19/2023 **Status:** ✅ Merged **Merged:** 4/23/2023 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (9) - [`d18289c`](https://github.com/wiremock/WireMock.Net/commit/d18289c09f11f9205e26942e2e369c3e87f38109) #630 Allow removal of prefix when proxying to another server - [`55a8929`](https://github.com/wiremock/WireMock.Net/commit/55a89297b9319040287b23ecbe7a9326c8181d3e) #630 Rename replace to replace settings and ensure properties used in place of fields - [`9e6cfb6`](https://github.com/wiremock/WireMock.Net/commit/9e6cfb68de39d2e0c378957914f5b772d41227bc) #630 Update replace settings type name to ProxyUrlReplaceSettings - [`b138d6d`](https://github.com/wiremock/WireMock.Net/commit/b138d6dd29f03de7816c3aba08423f00ae6293da) #630 Add admin model and update settings parser to parse new values - [`5183ce2`](https://github.com/wiremock/WireMock.Net/commit/5183ce25a4dbc54fd489102c4e0c5d33b3285a99) Fix formatting issues - [`3529951`](https://github.com/wiremock/WireMock.Net/commit/3529951895083d4d89542fd1eb46bbb13a910e6f) #630 Ensure json mapping between admin model and internal model takes place - [`75fb04b`](https://github.com/wiremock/WireMock.Net/commit/75fb04bbd5c0158b809b4b59266eb52f4001e08e) #630 Refactor parsing and structure of extracting new proxy url - [`7f6d789`](https://github.com/wiremock/WireMock.Net/commit/7f6d78901ecf0f98706cff5abee81a7bc29910bc) Reduce function complexity - [`2ef8d93`](https://github.com/wiremock/WireMock.Net/commit/2ef8d93c59eebe11621221ac76c8b27a34c0b798) #630 Fix line length issues and remove try prefix from parser methods ### 📊 Changes **8 files changed** (+350 additions, -212 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net.Abstractions/Admin/Settings/ProxyAndRecordSettingsModel.cs` (+75 -70) ➕ `src/WireMock.Net.Abstractions/Admin/Settings/ProxyUrlReplaceSettingsModel.cs` (+18 -0) 📝 `src/WireMock.Net/Proxy/ProxyHelper.cs` (+3 -1) 📝 `src/WireMock.Net/Settings/ProxyAndRecordSettings.cs` (+96 -90) ➕ `src/WireMock.Net/Settings/ProxyUrlReplaceSettings.cs` (+17 -0) 📝 `src/WireMock.Net/Settings/WireMockServerSettingsParser.cs` (+64 -22) 📝 `src/WireMock.Net/Util/TinyMapperUtils.cs` (+30 -28) 📝 `test/WireMock.Net.Tests/WireMockServer.Proxy.cs` (+47 -1) </details> ### 📄 Description Adds a new set of properties to the proxy server settings that allow prefix url rewriting in order to resolve issue https://github.com/WireMock-Net/WireMock.Net/issues/630 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 08:34:59 +01:00
adam closed this issue 2025-12-29 08:34:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#1150