-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OKHttp as our client. This will add support for java 8.
- Loading branch information
Showing
8 changed files
with
107 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/main/java/com/smartystreets/api/TooManyRequestsResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package com.smartystreets.api; | ||
|
||
import java.net.http.HttpHeaders; | ||
import okhttp3.Headers; | ||
|
||
public class TooManyRequestsResponse extends Response { | ||
|
||
private HttpHeaders headers; | ||
private Headers headers; | ||
|
||
public TooManyRequestsResponse(HttpHeaders headers, int statusCode, byte[] payload) { | ||
public TooManyRequestsResponse(Headers headers, int statusCode, byte[] payload) { | ||
super(statusCode, payload); | ||
this.headers = headers; | ||
} | ||
|
||
public HttpHeaders getHeaders() { | ||
public Headers getHeaders() { | ||
return headers; | ||
} | ||
} |
Oops, something went wrong.