mirror of
https://github.com/tauri-apps/tauri-plugin-http.git
synced 2026-01-31 00:45:17 +01:00
feat(ci): also test on Windows and macOS (#366)
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/5008962564 Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
This commit is contained in:
committed by
tauri-bot
parent
c214fa83ef
commit
c4a8aa79b7
@@ -19,7 +19,7 @@ http = "0.2"
|
||||
reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ] }
|
||||
|
||||
[features]
|
||||
http-multipart = [ "reqwest/multipart" ]
|
||||
multipart = [ "reqwest/multipart" ]
|
||||
native-tls = [ "reqwest/native-tls" ]
|
||||
native-tls-vendored = [ "reqwest/native-tls-vendored" ]
|
||||
rustls-tls = [ "reqwest/rustls-tls" ]
|
||||
|
||||
28
dist-js/index.d.ts
vendored
28
dist-js/index.d.ts
vendored
@@ -48,12 +48,12 @@ declare class Body {
|
||||
* and the value is either a string or a file object.
|
||||
*
|
||||
* By default it sets the `application/x-www-form-urlencoded` Content-Type header,
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `http-multipart` is enabled.
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `multipart` is enabled.
|
||||
*
|
||||
* Note that a file path must be allowed in the `fs` allowlist scope.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* const body = Body.form({
|
||||
* key: 'value',
|
||||
* image: {
|
||||
@@ -79,7 +79,7 @@ declare class Body {
|
||||
* Creates a new JSON body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.json({
|
||||
* registered: true,
|
||||
* name: 'tauri'
|
||||
@@ -95,7 +95,7 @@ declare class Body {
|
||||
* Creates a new UTF-8 string body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.text('The body content as a string');
|
||||
* ```
|
||||
*
|
||||
@@ -108,7 +108,7 @@ declare class Body {
|
||||
* Creates a new byte array body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.bytes(new Uint8Array([1, 2, 3]));
|
||||
* ```
|
||||
*
|
||||
@@ -178,7 +178,7 @@ declare class Client {
|
||||
* Drops the client instance.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* await client.drop();
|
||||
* ```
|
||||
@@ -188,7 +188,7 @@ declare class Client {
|
||||
* Makes an HTTP request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.request({
|
||||
* method: 'GET',
|
||||
@@ -201,7 +201,7 @@ declare class Client {
|
||||
* Makes a GET request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.get('http://localhost:3003/users', {
|
||||
* timeout: 30,
|
||||
@@ -215,7 +215,7 @@ declare class Client {
|
||||
* Makes a POST request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.post('http://localhost:3003/users', {
|
||||
* body: Body.json({
|
||||
@@ -232,7 +232,7 @@ declare class Client {
|
||||
* Makes a PUT request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.put('http://localhost:3003/users/1', {
|
||||
* body: Body.form({
|
||||
@@ -250,7 +250,7 @@ declare class Client {
|
||||
* Makes a PATCH request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.patch('http://localhost:3003/users/1', {
|
||||
* body: Body.json({ email: 'contact@tauri.app' })
|
||||
@@ -262,7 +262,7 @@ declare class Client {
|
||||
* Makes a DELETE request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.delete('http://localhost:3003/users/1');
|
||||
* ```
|
||||
@@ -273,7 +273,7 @@ declare class Client {
|
||||
* Creates a new client using the specified options.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* ```
|
||||
*
|
||||
@@ -288,7 +288,7 @@ declare function getClient(options?: ClientOptions): Promise<Client>;
|
||||
* Perform an HTTP request using the default client.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { fetch } from 'tauri-plugin-http-api';
|
||||
* import { fetch } from '@tauri-apps/plugin-http';
|
||||
* const response = await fetch('http://localhost:3003/users/2', {
|
||||
* method: 'GET',
|
||||
* timeout: 30,
|
||||
|
||||
28
dist-js/index.min.js
vendored
28
dist-js/index.min.js
vendored
@@ -28,12 +28,12 @@ class Body {
|
||||
* and the value is either a string or a file object.
|
||||
*
|
||||
* By default it sets the `application/x-www-form-urlencoded` Content-Type header,
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `http-multipart` is enabled.
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `multipart` is enabled.
|
||||
*
|
||||
* Note that a file path must be allowed in the `fs` allowlist scope.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* const body = Body.form({
|
||||
* key: 'value',
|
||||
* image: {
|
||||
@@ -93,7 +93,7 @@ class Body {
|
||||
* Creates a new JSON body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.json({
|
||||
* registered: true,
|
||||
* name: 'tauri'
|
||||
@@ -111,7 +111,7 @@ class Body {
|
||||
* Creates a new UTF-8 string body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.text('The body content as a string');
|
||||
* ```
|
||||
*
|
||||
@@ -126,7 +126,7 @@ class Body {
|
||||
* Creates a new byte array body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.bytes(new Uint8Array([1, 2, 3]));
|
||||
* ```
|
||||
*
|
||||
@@ -167,7 +167,7 @@ class Client {
|
||||
* Drops the client instance.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* await client.drop();
|
||||
* ```
|
||||
@@ -181,7 +181,7 @@ class Client {
|
||||
* Makes an HTTP request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.request({
|
||||
* method: 'GET',
|
||||
@@ -223,7 +223,7 @@ class Client {
|
||||
* Makes a GET request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.get('http://localhost:3003/users', {
|
||||
* timeout: 30,
|
||||
@@ -243,7 +243,7 @@ class Client {
|
||||
* Makes a POST request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.post('http://localhost:3003/users', {
|
||||
* body: Body.json({
|
||||
@@ -267,7 +267,7 @@ class Client {
|
||||
* Makes a PUT request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.put('http://localhost:3003/users/1', {
|
||||
* body: Body.form({
|
||||
@@ -292,7 +292,7 @@ class Client {
|
||||
* Makes a PATCH request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.patch('http://localhost:3003/users/1', {
|
||||
* body: Body.json({ email: 'contact@tauri.app' })
|
||||
@@ -310,7 +310,7 @@ class Client {
|
||||
* Makes a DELETE request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.delete('http://localhost:3003/users/1');
|
||||
* ```
|
||||
@@ -327,7 +327,7 @@ class Client {
|
||||
* Creates a new client using the specified options.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* ```
|
||||
*
|
||||
@@ -348,7 +348,7 @@ let defaultClient = null;
|
||||
* Perform an HTTP request using the default client.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { fetch } from 'tauri-plugin-http-api';
|
||||
* import { fetch } from '@tauri-apps/plugin-http';
|
||||
* const response = await fetch('http://localhost:3003/users/2', {
|
||||
* method: 'GET',
|
||||
* timeout: 30,
|
||||
|
||||
@@ -26,12 +26,12 @@ class Body {
|
||||
* and the value is either a string or a file object.
|
||||
*
|
||||
* By default it sets the `application/x-www-form-urlencoded` Content-Type header,
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `http-multipart` is enabled.
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `multipart` is enabled.
|
||||
*
|
||||
* Note that a file path must be allowed in the `fs` allowlist scope.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* const body = Body.form({
|
||||
* key: 'value',
|
||||
* image: {
|
||||
@@ -91,7 +91,7 @@ class Body {
|
||||
* Creates a new JSON body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.json({
|
||||
* registered: true,
|
||||
* name: 'tauri'
|
||||
@@ -109,7 +109,7 @@ class Body {
|
||||
* Creates a new UTF-8 string body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.text('The body content as a string');
|
||||
* ```
|
||||
*
|
||||
@@ -124,7 +124,7 @@ class Body {
|
||||
* Creates a new byte array body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.bytes(new Uint8Array([1, 2, 3]));
|
||||
* ```
|
||||
*
|
||||
@@ -165,7 +165,7 @@ class Client {
|
||||
* Drops the client instance.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* await client.drop();
|
||||
* ```
|
||||
@@ -179,7 +179,7 @@ class Client {
|
||||
* Makes an HTTP request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.request({
|
||||
* method: 'GET',
|
||||
@@ -221,7 +221,7 @@ class Client {
|
||||
* Makes a GET request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.get('http://localhost:3003/users', {
|
||||
* timeout: 30,
|
||||
@@ -241,7 +241,7 @@ class Client {
|
||||
* Makes a POST request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.post('http://localhost:3003/users', {
|
||||
* body: Body.json({
|
||||
@@ -265,7 +265,7 @@ class Client {
|
||||
* Makes a PUT request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.put('http://localhost:3003/users/1', {
|
||||
* body: Body.form({
|
||||
@@ -290,7 +290,7 @@ class Client {
|
||||
* Makes a PATCH request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.patch('http://localhost:3003/users/1', {
|
||||
* body: Body.json({ email: 'contact@tauri.app' })
|
||||
@@ -308,7 +308,7 @@ class Client {
|
||||
* Makes a DELETE request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.delete('http://localhost:3003/users/1');
|
||||
* ```
|
||||
@@ -325,7 +325,7 @@ class Client {
|
||||
* Creates a new client using the specified options.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* ```
|
||||
*
|
||||
@@ -346,7 +346,7 @@ let defaultClient = null;
|
||||
* Perform an HTTP request using the default client.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { fetch } from 'tauri-plugin-http-api';
|
||||
* import { fetch } from '@tauri-apps/plugin-http';
|
||||
* const response = await fetch('http://localhost:3003/users/2', {
|
||||
* method: 'GET',
|
||||
* timeout: 30,
|
||||
|
||||
@@ -103,12 +103,12 @@ class Body {
|
||||
* and the value is either a string or a file object.
|
||||
*
|
||||
* By default it sets the `application/x-www-form-urlencoded` Content-Type header,
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `http-multipart` is enabled.
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `multipart` is enabled.
|
||||
*
|
||||
* Note that a file path must be allowed in the `fs` allowlist scope.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* const body = Body.form({
|
||||
* key: 'value',
|
||||
* image: {
|
||||
@@ -169,7 +169,7 @@ class Body {
|
||||
* Creates a new JSON body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.json({
|
||||
* registered: true,
|
||||
* name: 'tauri'
|
||||
@@ -188,7 +188,7 @@ class Body {
|
||||
* Creates a new UTF-8 string body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.text('The body content as a string');
|
||||
* ```
|
||||
*
|
||||
@@ -204,7 +204,7 @@ class Body {
|
||||
* Creates a new byte array body.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { Body } from "tauri-plugin-http-api"
|
||||
* import { Body } from "@tauri-apps/plugin-http"
|
||||
* Body.bytes(new Uint8Array([1, 2, 3]));
|
||||
* ```
|
||||
*
|
||||
@@ -308,7 +308,7 @@ class Client {
|
||||
* Drops the client instance.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* await client.drop();
|
||||
* ```
|
||||
@@ -323,7 +323,7 @@ class Client {
|
||||
* Makes an HTTP request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.request({
|
||||
* method: 'GET',
|
||||
@@ -367,7 +367,7 @@ class Client {
|
||||
* Makes a GET request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.get('http://localhost:3003/users', {
|
||||
* timeout: 30,
|
||||
@@ -388,7 +388,7 @@ class Client {
|
||||
* Makes a POST request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body, ResponseType } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body, ResponseType } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.post('http://localhost:3003/users', {
|
||||
* body: Body.json({
|
||||
@@ -417,7 +417,7 @@ class Client {
|
||||
* Makes a PUT request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.put('http://localhost:3003/users/1', {
|
||||
* body: Body.form({
|
||||
@@ -447,7 +447,7 @@ class Client {
|
||||
* Makes a PATCH request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient, Body } from 'tauri-plugin-http-api';
|
||||
* import { getClient, Body } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.patch('http://localhost:3003/users/1', {
|
||||
* body: Body.json({ email: 'contact@tauri.app' })
|
||||
@@ -466,7 +466,7 @@ class Client {
|
||||
* Makes a DELETE request.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* const response = await client.delete('http://localhost:3003/users/1');
|
||||
* ```
|
||||
@@ -484,7 +484,7 @@ class Client {
|
||||
* Creates a new client using the specified options.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getClient } from 'tauri-plugin-http-api';
|
||||
* import { getClient } from '@tauri-apps/plugin-http';
|
||||
* const client = await getClient();
|
||||
* ```
|
||||
*
|
||||
@@ -507,7 +507,7 @@ let defaultClient: Client | null = null;
|
||||
* Perform an HTTP request using the default client.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { fetch } from 'tauri-plugin-http-api';
|
||||
* import { fetch } from '@tauri-apps/plugin-http';
|
||||
* const response = await fetch('http://localhost:3003/users/2', {
|
||||
* method: 'GET',
|
||||
* timeout: 30,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tauri-plugin-http-api",
|
||||
"name": "@tauri-apps/plugin-http",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
"authors": [
|
||||
|
||||
@@ -91,7 +91,7 @@ impl Client {
|
||||
headers: &mut Option<HeaderMap>,
|
||||
form_body: FormBody,
|
||||
) -> crate::Result<reqwest::RequestBuilder> {
|
||||
#[cfg(feature = "http-multipart")]
|
||||
#[cfg(feature = "multipart")]
|
||||
if matches!(
|
||||
headers
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user