forked from VisualReCode/Cocoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds option to CocoonProxyOptions to control the request Host header …
…value. Fixes VisualReCode#30
- Loading branch information
1 parent
41b7f53
commit 56b3613
Showing
3 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ReCode.Cocoon.Proxy.Proxy | ||
{ | ||
/// <summary> | ||
/// Host Header options when proxying request | ||
/// </summary> | ||
/// <remarks> | ||
/// Fixes #30 https://github.com/VisualReCode/Cocoon/issues/30 | ||
/// </remarks> | ||
public enum HostHeaderOptions | ||
{ | ||
/// <summary> | ||
/// Default operation: no changes to Host header | ||
/// </summary> | ||
None, | ||
/// <summary> | ||
/// Used on Azure hosting: sets the Host header to `default` (null) | ||
/// </summary> | ||
SetDefault, | ||
/// <summary> | ||
/// Copies the host header from the request to the Cocoon proxy | ||
/// </summary> | ||
UseHost | ||
} | ||
} |