MCPcopy Index your code
hub / github.com/OpenFeign/feign / basic

Method basic

core/src/main/java/feign/Client.java:102–107  ·  view source on GitHub ↗
(String username, String password)

Source from the content-addressed store, hash-verified

100 }
101
102 private String basic(String username, String password) {
103 String token = username + ":" + password;
104 byte[] bytes = token.getBytes(StandardCharsets.ISO_8859_1);
105 String encoded = Base64.getEncoder().encodeToString(bytes);
106 return "Basic " + encoded;
107 }
108 }
109}

Callers 1

ProxiedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected