Mercurial > gemma
comparison controllers/externalwfs.go @ 363:45d4399f6c15
merge
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 08 Aug 2018 18:14:31 +0200 |
parents | ac7e0f980456 |
children | 765e056ab4e8 |
comparison
equal
deleted
inserted
replaced
362:2c58906649be | 363:45d4399f6c15 |
---|---|
15 "golang.org/x/net/html/charset" | 15 "golang.org/x/net/html/charset" |
16 | 16 |
17 "gemma.intevation.de/gemma/config" | 17 "gemma.intevation.de/gemma/config" |
18 ) | 18 ) |
19 | 19 |
20 type RoundTripFunc func(*http.Request) (*http.Response, error) | 20 // roundTripFunc is a helper type to make externalWFSDirector a http.RoundTripper. |
21 | 21 type roundTripFunc func(*http.Request) (*http.Response, error) |
22 func (rtf RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) { | 22 |
23 func (rtf roundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) { | |
23 return rtf(req) | 24 return rtf(req) |
24 } | 25 } |
25 | 26 |
26 func externalWFSDirector(req *http.Request) { | 27 func externalWFSDirector(req *http.Request) { |
27 | 28 |