We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e91444a commit 576b4b8Copy full SHA for 576b4b8
src/http.ts
@@ -1359,6 +1359,13 @@ export class LemmyHttp {
1359
return json;
1360
}
1361
1362
+
1363
+ /**
1364
+ * Set the headers (can be used to set the auth header)
1365
+ */
1366
+ setHeaders(headers: { [key: string]: string }) {
1367
+ this.#headers = headers;
1368
+ }
1369
1370
1371
function encodeGetParams<BodyType extends object>(p: BodyType): string {
0 commit comments