Skip to content

Commit b452171

Browse files
fix: use fully qualified https:// URLs in documentation and Javadoc
1 parent 509f89b commit b452171

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Each namespace has its own authentication requirements and access patterns. Whil
1616
// Example of accessing Client namespace
1717
Glean glean = Glean.builder()
1818
.apiToken("client-token")
19-
.serverURL("mycompany-be.glean.com")
19+
.serverURL("https://mycompany-be.glean.com")
2020
.build();
2121
glean.client().search().query()
2222
.searchRequest(SearchRequest.builder().query("search term").build())
@@ -25,7 +25,7 @@ glean.client().search().query()
2525
// Example of accessing Indexing namespace
2626
Glean glean = Glean.builder()
2727
.apiToken("indexing-token")
28-
.serverURL("mycompany-be.glean.com")
28+
.serverURL("https://mycompany-be.glean.com")
2929
.build();
3030
glean.indexing().documents().index()
3131
.request(DocumentBulkIndexRequest.builder() /* document data */ .build())
@@ -1314,7 +1314,7 @@ The recommended way to configure your Glean backend is using `.serverURL()` with
13141314

13151315
```java
13161316
Glean sdk = Glean.builder()
1317-
.serverURL("mycompany-be.glean.com")
1317+
.serverURL("https://mycompany-be.glean.com")
13181318
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
13191319
.build();
13201320
```
@@ -1636,7 +1636,7 @@ export X_GLEAN_INCLUDE_EXPERIMENTAL="true"
16361636
// Environment variables are automatically read by the SDK
16371637
Glean glean = Glean.builder()
16381638
.apiToken(System.getenv("GLEAN_API_TOKEN"))
1639-
.serverURL("mycompany-be.glean.com")
1639+
.serverURL("https://mycompany-be.glean.com")
16401640
.build();
16411641
```
16421642

@@ -1647,7 +1647,7 @@ import com.glean.api_client.glean_api_client.hooks.GleanBuilder;
16471647

16481648
Glean glean = GleanBuilder.create()
16491649
.apiToken(System.getenv("GLEAN_API_TOKEN"))
1650-
.serverURL("mycompany-be.glean.com")
1650+
.serverURL("https://mycompany-be.glean.com")
16511651
.excludeDeprecatedAfter("2026-10-15")
16521652
.includeExperimental(true)
16531653
.build();

src/main/java/com/glean/api_client/glean_api_client/hooks/GleanBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* <pre>{@code
2121
* Glean glean = GleanBuilder.create()
2222
* .apiToken("your-api-token")
23-
* .serverURL("mycompany-be.glean.com")
23+
* .serverURL("https://mycompany-be.glean.com")
2424
* .excludeDeprecatedAfter("2026-10-15")
2525
* .includeExperimental(true)
2626
* .build();

0 commit comments

Comments
 (0)