Skip to content

Commit 1b753b5

Browse files
Save the redirect to avoid subsequent 307 requests. (#39)
* Save the redirect to avoid subsequent 307 requests. Save the cloudflare worker's responseUrl (the 307 redirect url) so we don't have to hit the worker for all subsquent requests * Save redirected base path to configuration * Move the functionality to update the basePath after a 307 redirect to a helper function
1 parent af2920c commit 1b753b5

33 files changed

Lines changed: 7234 additions & 112 deletions

lib/Sql/Sql.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Configuration, ConfigurationParameters, SqlApi } from "../v1";
2+
import { AxiosInstance } from "axios";
23
declare class Sql {
34
config: Configuration;
45
API: SqlApi;
5-
constructor(params: ConfigurationParameters);
6+
constructor(params: ConfigurationParameters, axios?: AxiosInstance);
67
exec(namespace: string, query: string): Promise<import("axios").AxiosResponse<object[]>>;
78
}
89
export default Sql;

lib/Sql/Sql.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Sql/Sql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/TileDBClient/TileDBClient.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare class TileDBClient {
1414
udf: UDF;
1515
sql: Sql;
1616
query: TileDBQuery;
17+
private axios;
1718
constructor(params?: Omit<ConfigurationParameters, "username" | "password">);
1819
info(namespace: string, array: string, options?: any): Promise<import("axios").AxiosResponse<import("../v1").ArrayInfo>>;
1920
arrayActivity(namespace: string, array: string, start?: number, end?: number, eventTypes?: string, taskId?: string, hasTaskId?: boolean, options?: any): Promise<import("axios").AxiosResponse<import("../v1").ArrayActivityLog[]>>;

lib/TileDBClient/TileDBClient.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)