-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support input.method and input.path extraction from the X-Forwarded-Uri/Method headers set by Traefik's forwardAuth middleware
- Loading branch information
1 parent
8d67e85
commit 4cee476
Showing
6 changed files
with
90 additions
and
10 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
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
package e2e | ||
|
||
type Request struct { | ||
Name string `yaml:"name"` | ||
URL string `yaml:"url"` | ||
Body string `yaml:"body"` | ||
StatusCode int `yaml:"statusCode"` | ||
Name string `yaml:"name"` | ||
Method string `yaml:"method"` | ||
URL string `yaml:"url"` | ||
Body string `yaml:"body"` | ||
StatusCode int `yaml:"statusCode"` | ||
Headers map[string]string `yaml:"header"` | ||
} | ||
|
||
func (r *Request) Defaults() { | ||
if r.Method == "" { | ||
r.Method = "POST" | ||
} | ||
} |
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