{"id":16040347,"url":"https://github.com/mathroule/test-web-view","last_synced_at":"2025-08-08T04:43:40.224Z","repository":{"id":98988599,"uuid":"157419652","full_name":"mathroule/test-web-view","owner":"mathroule","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-16T00:35:01.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T01:42:47.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathroule.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-13T17:27:54.000Z","updated_at":"2018-11-16T00:35:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"22102dd0-e3d0-4e92-a6af-db4f26009c72","html_url":"https://github.com/mathroule/test-web-view","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mathroule/test-web-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Ftest-web-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Ftest-web-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Ftest-web-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Ftest-web-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathroule","download_url":"https://codeload.github.com/mathroule/test-web-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Ftest-web-view/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269366504,"owners_count":24405239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T23:10:37.389Z","updated_at":"2025-08-08T04:43:40.151Z","avatar_url":"https://github.com/mathroule.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebView with different HTTP Clients\n\n## Integrated HTTP clients\n* Default web view without request interception\n* Web view with request intercepted by [HTTP URL connection](https://developer.android.com/reference/java/net/HttpURLConnection)\n* Web view with request intercepted by [Apache default HTTP client](https://developer.blackberry.com/devzone/files/blackberry-dynamics/android/classcom_1_1good_1_1gd_1_1apache_1_1http_1_1impl_1_1client_1_1_default_http_client.html)\n* Web view with request intercepted by [GD HTTP client](https://developer.blackberry.com/devzone/files/blackberry-dynamics/android/classcom_1_1good_1_1gd_1_1net_1_1_g_d_http_client.html)\n* Web view with request intercepted by [OK HTTP client](https://square.github.io/okhttp/3.x/okhttp/okhttp3/OkHttpClient.html)\n\n## Setup\nSetup BlackBerry Dynamics following [this setup](https://developers.blackberry.com/us/en/resources/get-started/blackberry-dynamics-getting-started.html?platform=android).\n\nThe default web view URL could be changed in [BaseWebViewActivity.java](./app/src/main/java/com/mathroule/testwebview/activity/BaseWebViewActivity.java).\n\n## Result\nLoading times in milliseconds for an URL using an HTTP client.\n\n_Test runs on Nexus 6P emulator with Android API 26._\n\n| URL \\ HTTP client | Default web view client | HTTP URL connection | Apache default HTTP client | GD HTTP client | OK HTTP client |\n|-------------------|-------------------------|---------------------|----------------------------|----------------|----------------|\n| https://www.google.com | 895 ms | 942 ms | 925 ms | 1932 ms | 623 ms |\n| https://github.com | 1931 ms | 2730 ms | 9787 ms | 21600 ms | 2737 ms |\n| https://httpbin.org/redirect-to?url=https://www.google.com | 707 ms | 1400 ms | 1480 ms | 2560 ms | 1015 ms |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathroule%2Ftest-web-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathroule%2Ftest-web-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathroule%2Ftest-web-view/lists"}