Skip to content

Commit

Permalink
Merge pull request #347 from ably/any-sync-http
Browse files Browse the repository at this point in the history
Add ability to generalize over a HTTP request being async or not.
  • Loading branch information
tcard authored Sep 28, 2017
2 parents d2bb116 + b31db28 commit b3c8862
Show file tree
Hide file tree
Showing 38 changed files with 2,251 additions and 1,930 deletions.
7 changes: 3 additions & 4 deletions lib/src/main/java/io/ably/lib/debug/DebugOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import java.util.List;
import java.util.Map;

import io.ably.lib.http.Http.RequestBody;
import io.ably.lib.http.Http.Response;
import io.ably.lib.http.HttpCore;
import io.ably.lib.types.AblyException;
import io.ably.lib.types.ClientOptions;
import io.ably.lib.types.ProtocolMessage;
Expand All @@ -18,8 +17,8 @@ public interface RawProtocolListener {
}

public interface RawHttpListener {
public void onRawHttpRequest(String id, HttpURLConnection conn, String method, String authHeader, Map<String, List<String>> requestHeaders, RequestBody requestBody);
public void onRawHttpResponse(String id, Response response);
public void onRawHttpRequest(String id, HttpURLConnection conn, String method, String authHeader, Map<String, List<String>> requestHeaders, HttpCore.RequestBody requestBody);
public void onRawHttpResponse(String id, HttpCore.Response response);
public void onRawHttpException(String id, Throwable t);
}

Expand Down
Loading

0 comments on commit b3c8862

Please sign in to comment.