MCPcopy
hub / github.com/justauth/JustAuth / check

Method check

src/main/java/me/zhyd/oauth/utils/HttpUtils.java:118–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 private HttpUtils check() {
119 if (null == httpResponse) {
120 throw new AuthException("Invalid SimpleHttpResponse.");
121 }
122 if (!httpResponse.isSuccess()) {
123 throw new AuthException(httpResponse.getError());
124 }
125 return this;
126 }
127
128 public String getBody() {
129 return this.check().getHttpResponse().getBody();

Callers 1

getBodyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected