Skip to content

Basic Commands for HTTP using CircuitBreaker with Resilience4j

License

Notifications You must be signed in to change notification settings

Cantara/Resilience4j-BaseCommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub tag (latest SemVer) Build Status GitHub commit activity Project Status: Active – The project has reached a stable, usable state and is being actively developed. Known Vulnerabilities

Resilience4j-BaseCommands

Basic Commands for HTTP using CircuitBreaker with Resilience4j

  • BaseHttpGetResilience4jCommand
  • BaseHttpPostResilience4jCommand
  • BaseHttpPutResilience4jCommand
  • BaseHttpDeleteResilience4jCommand
  • BaseResilience4jCommand

Usage

CommandProxy commandProxy = new CommandProxy();
URI baseUri = URI.create("https://example.com/");
BaseResilience4jCommand command = new BaseHttpGetResilience4jCommand(baseUri, "name-of-similar-commands");
HttpResponse<String> response = commandProxy.run(command);
int status = response.statusCode();
String body = response.body();

About

Basic Commands for HTTP using CircuitBreaker with Resilience4j

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages