A small library to act like a proxy in front of any http web server. Particularly helpful when a service need to migrated amongst environments and a quick proxy is needed to front the requests in the interim
It is not down on any map; true places never are.
- Moby- Dick, Herman Melville
Work in Progress. Will publish once tests are written.
-
Clone the source:
git clone github.com/grookage/cascader
-
Build
mvn install
- Dropwizard - The bundle that got created for the server.
- OkhttpClient - Http client that just works.
- Hystrix - For fault tolerance
static class SampleConfiguration extends Configuration{
private CascaderConfiguration cascaderConfiguration;
}
}
CascaderBundle<SampleConfiguration> cascaderBundle = new CascaderBundle<SampleConfiguration>() {
@Override
public ProxyConfiguration getProxy(SampleConfiguration configuration) {
return configuration.getProxyConfiguration();
}
};
bootstrap.addBundle(cascaderBundle);
Copyright 2020 Koushik R [email protected].
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.