Skip to content

Commit

Permalink
🚚 Rename htransform to header-transform
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed Aug 14, 2021
1 parent a774b19 commit 9bf3ab0
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .traefik.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
displayName: Header transformation
displayName: Header transformer
type: middleware

import: github.com/adyanth/header-transform
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Header transformation plugin for Traefik

[![Build Status](https://travis-ci.com/tomMoulard/htransformation.svg?branch=main)](https://travis-ci.com/tomMoulard/htransformation)
[![Build Status](https://travis-ci.com/adyanth/header-transform.svg?branch=main)](https://travis-ci.com/adyanth/header-transform)

This plugin allows to change, on the fly, the header's value of a request.

Expand All @@ -13,7 +13,7 @@ pilot:
experimental:
devPlugin:
goPath: /home/tm/go
moduleName: github.com/tommoulard/htransformation
moduleName: github.com/adyanth/header-transform

entryPoints:
http:
Expand All @@ -27,7 +27,7 @@ api:

providers:
file:
filename: rules-htransformation.yaml
filename: rules-header-transform.yaml
```
## How to dev
Expand Down Expand Up @@ -216,8 +216,3 @@ The rules will be evaluated in the order of definition
```

This will firstly set the header `X-Custom-2` to 'True', then delete it and finally set it again but with `False`

# Authors
| Tom Moulard | Clément David | Martin Huvelle | Alexandre Bossut-Lasry |
|-------------|---------------|----------------|------------------------|
|[![](img/gopher-tom_moulard.png)](https://tom.moulard.org)|[![](img/gopher-clement_david.png)](https://github.com/cledavid)|[![](img/gopher-martin_huvelle.png)](https://github.com/nitra-mfs)|[![](img/gopher-alexandre_bossut-lasry.png)](https://www.linkedin.com/in/alexandre-bossut-lasry/)|
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/tommoulard/htransformation
module github.com/adyanth/header-transform

go 1.13
2 changes: 1 addition & 1 deletion htransformation.go → headertransform.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package htransformation
package header_transform

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions htransformation_test.go → headertransform_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package htransformation_test
package header_transform_test

import (
"context"
"net/http"
"net/http/httptest"
"testing"

plug "github.com/tommoulard/htransformation"
plug "github.com/adyanth/header-transform"
)

func assertHeader(t *testing.T, req *http.Request, key, expected string) {
Expand Down
Binary file removed img/gopher-alexandre_bossut-lasry.png
Binary file not shown.
Binary file removed img/gopher-clement_david.png
Binary file not shown.
Binary file removed img/gopher-martin_huvelle.png
Binary file not shown.
Binary file removed img/gopher-tom_moulard.png
Binary file not shown.
4 changes: 2 additions & 2 deletions rules-htransformation.yaml → rules-header-transform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ http:
routers:
my-router:
middlewares:
- htransformation
- header-transform
entrypoints:
- http
service: service-whoami
Expand All @@ -17,7 +17,7 @@ http:
- url: http://localhost:5000
passHostHeader: false
middlewares:
htransformation:
header-transform:
plugin:
dev:
Rules:
Expand Down
61 changes: 0 additions & 61 deletions sider.yml

This file was deleted.

0 comments on commit 9bf3ab0

Please sign in to comment.