-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from clerk/speakeasy-sdk-regen-1718377693
chore: 🐝 Update SDK - Generate
- Loading branch information
Showing
11 changed files
with
104 additions
and
27 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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
*/ | ||
|
||
package com.clerk.backend_api.utils; | ||
|
||
import java.net.http.HttpRequest; | ||
import java.util.function.BiPredicate; | ||
|
||
/** | ||
* Public helper methods for use by customers and end-users. | ||
* | ||
*/ | ||
public final class Helpers { | ||
|
||
/** | ||
* Returns an {@link HttpRequest.Builder} which is initialized with the | ||
* state of the given {@link HttpRequest}. | ||
* | ||
* <p>Note that headers can be added and modified but not removed. To | ||
* remove headers use {@link #copy(HttpRequest, BiPredicate)} (which applies | ||
* a filter to the headers while copying). | ||
* | ||
* <p>Note also that this method is redundant from JDK 16 because the | ||
* method {@code HttpRequest.newBuilder(HttpRequest)} is available. | ||
* | ||
* @param request request to copy | ||
* @return a builder initialized with values from {@code request} | ||
*/ | ||
public static HttpRequest.Builder copy(HttpRequest request) { | ||
return Utils.copy(request); | ||
} | ||
|
||
/** | ||
* Returns an {@link HttpRequest.Builder} which is initialized with the | ||
* state of the given {@link HttpRequest}. | ||
* | ||
* <p>Note that this method is redundant from JDK 16 because the | ||
* method {@code HttpRequest.newBuilder(HttpRequest, BiPredicate)} is available. | ||
* @param request request to copy | ||
* @param filter selects which header key-values to include in the copied request | ||
* @return a builder initialized with values from {@code request} | ||
*/ | ||
public static HttpRequest.Builder copy(HttpRequest request, BiPredicate<String, String> filter) { | ||
return Utils.copy(request, filter); | ||
} | ||
} |
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
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