-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 1: Add support for headers in HttpTransport
- Loading branch information
Showing
3 changed files
with
37 additions
and
16 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
10 changes: 6 additions & 4 deletions
10
src/main/java/com/ecwid/consul/transport/HttpTransport.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,16 +1,18 @@ | ||
package com.ecwid.consul.transport; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author Vasily Vasilkov ([email protected]) | ||
*/ | ||
public interface HttpTransport { | ||
|
||
public RawResponse makeGetRequest(String url); | ||
public RawResponse makeGetRequest(String url, Map<String, String> headers); | ||
|
||
public RawResponse makePutRequest(String url, String content); | ||
public RawResponse makePutRequest(String url, String content, Map<String, String> headers); | ||
|
||
public RawResponse makePutRequest(String url, byte[] content); | ||
public RawResponse makePutRequest(String url, byte[] content, Map<String, String> headers); | ||
|
||
public RawResponse makeDeleteRequest(String url); | ||
public RawResponse makeDeleteRequest(String url, Map<String, String> headers); | ||
|
||
} |
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