I have a specific pipeline in my app that must follow all redirects (let's say up to 50 for sanity's sake), across any domain and protocol (e.g. it could follow http://somewhere.com to https://somewhere.else.com), but only for GET requests. No other pipeline in my app should do this.
Here's what it looks like now:
val pipeline = sendReceive ~> decode(Gzip) ~> decode(Deflate) ~> unmarshal[String]
How can I specify this inside the pipeline's configuration in a host-agnostic manner (i.e. not via configuration option or HostConnectorSetup
)?