Skip to content

Commit

Permalink
example comment
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Nino <[email protected]>
  • Loading branch information
Jose Nino committed Feb 20, 2020
1 parent d4c65c1 commit 1719bfa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/java/hello_world/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ protected void onDestroy() {
}

private void makeRequest() {
// Note: this request will use an http/1.1 stream for the upstream request.
// The Kotlin example uses h2. This is done on purpose to test both paths in end-to-end tests
// in CI.
Request request =
new RequestBuilder(RequestMethod.GET, REQUEST_SCHEME, REQUEST_AUTHORITY, REQUEST_PATH)
.build();
Expand Down
3 changes: 3 additions & 0 deletions examples/kotlin/hello_world/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ class MainActivity : Activity() {
}

private fun makeRequest() {
// Note: this request will use an h2 stream for the upstream request.
// The Java example uses http/1.1. This is done on purpose to test both paths in end-to-end
// tests in CI.
val request = RequestBuilder(RequestMethod.GET, REQUEST_SCHEME, REQUEST_AUTHORITY, REQUEST_PATH)
.addUpstreamHttpProtocol(UpstreamHttpProtocol.HTTP2)
.build()
Expand Down
3 changes: 3 additions & 0 deletions examples/objective-c/hello_world/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ - (void)performRequest {
NSLog(@"Starting request to '%@'", _REQUEST_PATH);

int requestID = self.requestCount;
// Note: this request will use an http/1.1 stream for the upstream request.
// The Swift example uses h2. This is done on purpose to test both paths in end-to-end tests
// in CI.
RequestBuilder *builder = [[RequestBuilder alloc] initWithMethod:RequestMethodGet
scheme:_REQUEST_SCHEME
authority:_REQUEST_AUTHORITY
Expand Down
3 changes: 3 additions & 0 deletions examples/swift/hello_world/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ final class ViewController: UITableViewController {
NSLog("Starting request to '\(kRequestPath)'")

let requestID = self.requestCount
// Note: this request will use an h2 stream for the upstream request.
// The Objective-C example uses http/1.1. This is done on purpose to test both paths in
// end-to-end tests in CI.
let request = RequestBuilder(method: .get, scheme: kRequestScheme,
authority: kRequestAuthority,
path: kRequestPath, upstreamHttpProtocol: .http2)
Expand Down

0 comments on commit 1719bfa

Please sign in to comment.