@scalar/snippetz 0.4.8 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{clients.d.ts → clients/index.d.ts} +1 -1
- package/dist/clients/index.d.ts.map +1 -0
- package/dist/clients/index.js +163 -0
- package/dist/{clients.js.map → clients/index.js.map} +2 -2
- package/dist/snippetz.js +1 -1
- package/package.json +9 -4
- package/dist/clients.d.ts.map +0 -1
- package/dist/clients.js +0 -163
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,EAyH3B,CAAA"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { cLibcurl } from "../plugins/c/libcurl/libcurl.js";
|
|
2
|
+
import { clojureCljhttp } from "../plugins/clojure/clj_http/index.js";
|
|
3
|
+
import { csharpHttpclient } from "../plugins/csharp/httpclient/index.js";
|
|
4
|
+
import { csharpRestsharp } from "../plugins/csharp/restsharp/index.js";
|
|
5
|
+
import { dartHttp } from "../plugins/dart/http/index.js";
|
|
6
|
+
import { goNative } from "../plugins/go/native/index.js";
|
|
7
|
+
import { httpHttp11 } from "../plugins/http/http11/index.js";
|
|
8
|
+
import { javaAsynchttp } from "../plugins/java/asynchttp/index.js";
|
|
9
|
+
import { javaNethttp } from "../plugins/java/nethttp/nethttp.js";
|
|
10
|
+
import { javaOkhttp } from "../plugins/java/okhttp/okhttp.js";
|
|
11
|
+
import { javaUnirest } from "../plugins/java/unirest/unirest.js";
|
|
12
|
+
import { jsAxios } from "../plugins/js/axios/index.js";
|
|
13
|
+
import { jsFetch } from "../plugins/js/fetch/index.js";
|
|
14
|
+
import { jsJquery } from "../plugins/js/jquery/index.js";
|
|
15
|
+
import { jsOfetch } from "../plugins/js/ofetch/index.js";
|
|
16
|
+
import { jsXhr } from "../plugins/js/xhr/index.js";
|
|
17
|
+
import { kotlinOkhttp } from "../plugins/kotlin/okhttp/index.js";
|
|
18
|
+
import { nodeAxios } from "../plugins/node/axios/index.js";
|
|
19
|
+
import { nodeFetch } from "../plugins/node/fetch/index.js";
|
|
20
|
+
import { nodeOfetch } from "../plugins/node/ofetch/index.js";
|
|
21
|
+
import { nodeUndici } from "../plugins/node/undici/index.js";
|
|
22
|
+
import { objcNsurlsession } from "../plugins/objc/nsurlsession/index.js";
|
|
23
|
+
import { ocamlCohttp } from "../plugins/ocaml/cohttp/index.js";
|
|
24
|
+
import { phpCurl } from "../plugins/php/curl/index.js";
|
|
25
|
+
import { phpGuzzle } from "../plugins/php/guzzle/index.js";
|
|
26
|
+
import { powershellRestmethod } from "../plugins/powershell/restmethod/index.js";
|
|
27
|
+
import { powershellWebrequest } from "../plugins/powershell/webrequest/index.js";
|
|
28
|
+
import { pythonPython3 } from "../plugins/python/python3/index.js";
|
|
29
|
+
import { pythonRequests } from "../plugins/python/requests/index.js";
|
|
30
|
+
import { pythonHttpxSync, pythonHttpxAsync } from "../plugins/python/httpx/index.js";
|
|
31
|
+
import { rHttr } from "../plugins/r/httr/index.js";
|
|
32
|
+
import { rubyNative } from "../plugins/ruby/native/index.js";
|
|
33
|
+
import { rustReqwest } from "../plugins/rust/reqwest/index.js";
|
|
34
|
+
import { shellCurl } from "../plugins/shell/curl/index.js";
|
|
35
|
+
import { shellHttpie } from "../plugins/shell/httpie/index.js";
|
|
36
|
+
import { shellWget } from "../plugins/shell/wget/index.js";
|
|
37
|
+
import { swiftNsurlsession } from "../plugins/swift/nsurlsession/index.js";
|
|
38
|
+
const clients = [
|
|
39
|
+
{
|
|
40
|
+
key: "c",
|
|
41
|
+
title: "C",
|
|
42
|
+
default: "libcurl",
|
|
43
|
+
clients: [cLibcurl]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: "csharp",
|
|
47
|
+
title: "C#",
|
|
48
|
+
default: "restsharp",
|
|
49
|
+
clients: [csharpHttpclient, csharpRestsharp]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: "clojure",
|
|
53
|
+
title: "Clojure",
|
|
54
|
+
default: "clj_http",
|
|
55
|
+
clients: [clojureCljhttp]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: "dart",
|
|
59
|
+
title: "Dart",
|
|
60
|
+
default: "http",
|
|
61
|
+
clients: [dartHttp]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "go",
|
|
65
|
+
title: "Go",
|
|
66
|
+
default: "native",
|
|
67
|
+
clients: [goNative]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "http",
|
|
71
|
+
title: "HTTP",
|
|
72
|
+
default: "http1.1",
|
|
73
|
+
clients: [httpHttp11]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: "java",
|
|
77
|
+
title: "Java",
|
|
78
|
+
default: "unirest",
|
|
79
|
+
clients: [javaAsynchttp, javaNethttp, javaOkhttp, javaUnirest]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "js",
|
|
83
|
+
title: "JavaScript",
|
|
84
|
+
default: "fetch",
|
|
85
|
+
clients: [jsFetch, jsAxios, jsOfetch, jsJquery, jsXhr]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "kotlin",
|
|
89
|
+
title: "Kotlin",
|
|
90
|
+
default: "okhttp",
|
|
91
|
+
clients: [kotlinOkhttp]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
key: "node",
|
|
95
|
+
title: "Node.js",
|
|
96
|
+
default: "fetch",
|
|
97
|
+
clients: [nodeFetch, nodeAxios, nodeOfetch, nodeUndici]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "objc",
|
|
101
|
+
title: "Objective-C",
|
|
102
|
+
default: "nsurlsession",
|
|
103
|
+
clients: [objcNsurlsession]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
key: "ocaml",
|
|
107
|
+
title: "OCaml",
|
|
108
|
+
default: "cohttp",
|
|
109
|
+
clients: [ocamlCohttp]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
key: "php",
|
|
113
|
+
title: "PHP",
|
|
114
|
+
default: "curl",
|
|
115
|
+
clients: [phpCurl, phpGuzzle]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "powershell",
|
|
119
|
+
title: "PowerShell",
|
|
120
|
+
default: "webrequest",
|
|
121
|
+
clients: [powershellWebrequest, powershellRestmethod]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: "python",
|
|
125
|
+
title: "Python",
|
|
126
|
+
default: "python3",
|
|
127
|
+
clients: [pythonPython3, pythonRequests, pythonHttpxSync, pythonHttpxAsync]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "r",
|
|
131
|
+
title: "R",
|
|
132
|
+
default: "httr",
|
|
133
|
+
clients: [rHttr]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: "ruby",
|
|
137
|
+
title: "Ruby",
|
|
138
|
+
default: "native",
|
|
139
|
+
clients: [rubyNative]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "rust",
|
|
143
|
+
title: "Rust",
|
|
144
|
+
default: "reqwest",
|
|
145
|
+
clients: [rustReqwest]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
key: "shell",
|
|
149
|
+
title: "Shell",
|
|
150
|
+
default: "curl",
|
|
151
|
+
clients: [shellCurl, shellWget, shellHttpie]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: "swift",
|
|
155
|
+
title: "Swift",
|
|
156
|
+
default: "nsurlsession",
|
|
157
|
+
clients: [swiftNsurlsession]
|
|
158
|
+
}
|
|
159
|
+
];
|
|
160
|
+
export {
|
|
161
|
+
clients
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
4
|
-
"sourcesContent": ["import { cLibcurl } from '@/plugins/c/libcurl/libcurl'\nimport { clojureCljhttp } from '@/plugins/clojure/clj_http'\nimport { csharpHttpclient } from '@/plugins/csharp/httpclient'\nimport { csharpRestsharp } from '@/plugins/csharp/restsharp'\nimport { dartHttp } from '@/plugins/dart/http'\nimport { goNative } from '@/plugins/go/native'\nimport { httpHttp11 } from '@/plugins/http/http11'\nimport { javaAsynchttp } from '@/plugins/java/asynchttp'\nimport { javaNethttp } from '@/plugins/java/nethttp/nethttp'\nimport { javaOkhttp } from '@/plugins/java/okhttp/okhttp'\nimport { javaUnirest } from '@/plugins/java/unirest/unirest'\nimport { jsAxios } from '@/plugins/js/axios'\nimport { jsFetch } from '@/plugins/js/fetch'\nimport { jsJquery } from '@/plugins/js/jquery'\nimport { jsOfetch } from '@/plugins/js/ofetch'\nimport { jsXhr } from '@/plugins/js/xhr'\nimport { kotlinOkhttp } from '@/plugins/kotlin/okhttp'\nimport { nodeAxios } from '@/plugins/node/axios'\nimport { nodeFetch } from '@/plugins/node/fetch'\nimport { nodeOfetch } from '@/plugins/node/ofetch'\nimport { nodeUndici } from '@/plugins/node/undici'\nimport { objcNsurlsession } from '@/plugins/objc/nsurlsession'\nimport { ocamlCohttp } from '@/plugins/ocaml/cohttp'\nimport { phpCurl } from '@/plugins/php/curl'\nimport { phpGuzzle } from '@/plugins/php/guzzle'\nimport { powershellRestmethod } from '@/plugins/powershell/restmethod'\nimport { powershellWebrequest } from '@/plugins/powershell/webrequest'\nimport { pythonPython3 } from '@/plugins/python/python3'\nimport { pythonRequests } from '@/plugins/python/requests'\nimport { pythonHttpxSync, pythonHttpxAsync } from '@/plugins/python/httpx'\nimport { rHttr } from '@/plugins/r/httr'\nimport { rubyNative } from '@/plugins/ruby/native'\nimport { rustReqwest } from '@/plugins/rust/reqwest'\nimport { shellCurl } from '@/plugins/shell/curl'\nimport { shellHttpie } from '@/plugins/shell/httpie'\nimport { shellWget } from '@/plugins/shell/wget'\nimport { swiftNsurlsession } from '@/plugins/swift/nsurlsession'\nimport type { Target } from '@scalar/types/snippetz'\n\n/**\n * All available clients\n */\nexport const clients: Target[] = [\n {\n key: 'c',\n title: 'C',\n default: 'libcurl',\n clients: [cLibcurl],\n },\n {\n key: 'csharp',\n title: 'C#',\n default: 'restsharp',\n clients: [csharpHttpclient, csharpRestsharp],\n },\n {\n key: 'clojure',\n title: 'Clojure',\n default: 'clj_http',\n clients: [clojureCljhttp],\n },\n {\n key: 'dart',\n title: 'Dart',\n default: 'http',\n clients: [dartHttp],\n },\n {\n key: 'go',\n title: 'Go',\n default: 'native',\n clients: [goNative],\n },\n {\n key: 'http',\n title: 'HTTP',\n default: 'http1.1',\n clients: [httpHttp11],\n },\n {\n key: 'java',\n title: 'Java',\n default: 'unirest',\n clients: [javaAsynchttp, javaNethttp, javaOkhttp, javaUnirest],\n },\n {\n key: 'js',\n title: 'JavaScript',\n default: 'fetch',\n clients: [jsFetch, jsAxios, jsOfetch, jsJquery, jsXhr],\n },\n {\n key: 'kotlin',\n title: 'Kotlin',\n default: 'okhttp',\n clients: [kotlinOkhttp],\n },\n {\n key: 'node',\n title: 'Node.js',\n default: 'fetch',\n clients: [nodeFetch, nodeAxios, nodeOfetch, nodeUndici],\n },\n {\n key: 'objc',\n title: 'Objective-C',\n default: 'nsurlsession',\n clients: [objcNsurlsession],\n },\n {\n key: 'ocaml',\n title: 'OCaml',\n default: 'cohttp',\n clients: [ocamlCohttp],\n },\n {\n key: 'php',\n title: 'PHP',\n default: 'curl',\n clients: [phpCurl, phpGuzzle],\n },\n {\n key: 'powershell',\n title: '
|
|
3
|
+
"sources": ["../../src/clients/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { cLibcurl } from '@/plugins/c/libcurl/libcurl'\nimport { clojureCljhttp } from '@/plugins/clojure/clj_http'\nimport { csharpHttpclient } from '@/plugins/csharp/httpclient'\nimport { csharpRestsharp } from '@/plugins/csharp/restsharp'\nimport { dartHttp } from '@/plugins/dart/http'\nimport { goNative } from '@/plugins/go/native'\nimport { httpHttp11 } from '@/plugins/http/http11'\nimport { javaAsynchttp } from '@/plugins/java/asynchttp'\nimport { javaNethttp } from '@/plugins/java/nethttp/nethttp'\nimport { javaOkhttp } from '@/plugins/java/okhttp/okhttp'\nimport { javaUnirest } from '@/plugins/java/unirest/unirest'\nimport { jsAxios } from '@/plugins/js/axios'\nimport { jsFetch } from '@/plugins/js/fetch'\nimport { jsJquery } from '@/plugins/js/jquery'\nimport { jsOfetch } from '@/plugins/js/ofetch'\nimport { jsXhr } from '@/plugins/js/xhr'\nimport { kotlinOkhttp } from '@/plugins/kotlin/okhttp'\nimport { nodeAxios } from '@/plugins/node/axios'\nimport { nodeFetch } from '@/plugins/node/fetch'\nimport { nodeOfetch } from '@/plugins/node/ofetch'\nimport { nodeUndici } from '@/plugins/node/undici'\nimport { objcNsurlsession } from '@/plugins/objc/nsurlsession'\nimport { ocamlCohttp } from '@/plugins/ocaml/cohttp'\nimport { phpCurl } from '@/plugins/php/curl'\nimport { phpGuzzle } from '@/plugins/php/guzzle'\nimport { powershellRestmethod } from '@/plugins/powershell/restmethod'\nimport { powershellWebrequest } from '@/plugins/powershell/webrequest'\nimport { pythonPython3 } from '@/plugins/python/python3'\nimport { pythonRequests } from '@/plugins/python/requests'\nimport { pythonHttpxSync, pythonHttpxAsync } from '@/plugins/python/httpx'\nimport { rHttr } from '@/plugins/r/httr'\nimport { rubyNative } from '@/plugins/ruby/native'\nimport { rustReqwest } from '@/plugins/rust/reqwest'\nimport { shellCurl } from '@/plugins/shell/curl'\nimport { shellHttpie } from '@/plugins/shell/httpie'\nimport { shellWget } from '@/plugins/shell/wget'\nimport { swiftNsurlsession } from '@/plugins/swift/nsurlsession'\nimport type { Target } from '@scalar/types/snippetz'\n\n/**\n * All available clients\n */\nexport const clients: Target[] = [\n {\n key: 'c',\n title: 'C',\n default: 'libcurl',\n clients: [cLibcurl],\n },\n {\n key: 'csharp',\n title: 'C#',\n default: 'restsharp',\n clients: [csharpHttpclient, csharpRestsharp],\n },\n {\n key: 'clojure',\n title: 'Clojure',\n default: 'clj_http',\n clients: [clojureCljhttp],\n },\n {\n key: 'dart',\n title: 'Dart',\n default: 'http',\n clients: [dartHttp],\n },\n {\n key: 'go',\n title: 'Go',\n default: 'native',\n clients: [goNative],\n },\n {\n key: 'http',\n title: 'HTTP',\n default: 'http1.1',\n clients: [httpHttp11],\n },\n {\n key: 'java',\n title: 'Java',\n default: 'unirest',\n clients: [javaAsynchttp, javaNethttp, javaOkhttp, javaUnirest],\n },\n {\n key: 'js',\n title: 'JavaScript',\n default: 'fetch',\n clients: [jsFetch, jsAxios, jsOfetch, jsJquery, jsXhr],\n },\n {\n key: 'kotlin',\n title: 'Kotlin',\n default: 'okhttp',\n clients: [kotlinOkhttp],\n },\n {\n key: 'node',\n title: 'Node.js',\n default: 'fetch',\n clients: [nodeFetch, nodeAxios, nodeOfetch, nodeUndici],\n },\n {\n key: 'objc',\n title: 'Objective-C',\n default: 'nsurlsession',\n clients: [objcNsurlsession],\n },\n {\n key: 'ocaml',\n title: 'OCaml',\n default: 'cohttp',\n clients: [ocamlCohttp],\n },\n {\n key: 'php',\n title: 'PHP',\n default: 'curl',\n clients: [phpCurl, phpGuzzle],\n },\n {\n key: 'powershell',\n title: 'PowerShell',\n default: 'webrequest',\n clients: [powershellWebrequest, powershellRestmethod],\n },\n {\n key: 'python',\n title: 'Python',\n default: 'python3',\n clients: [pythonPython3, pythonRequests, pythonHttpxSync, pythonHttpxAsync],\n },\n {\n key: 'r',\n title: 'R',\n default: 'httr',\n clients: [rHttr],\n },\n {\n key: 'ruby',\n title: 'Ruby',\n default: 'native',\n clients: [rubyNative],\n },\n {\n key: 'rust',\n title: 'Rust',\n default: 'reqwest',\n clients: [rustReqwest],\n },\n {\n key: 'shell',\n title: 'Shell',\n default: 'curl',\n clients: [shellCurl, shellWget, shellHttpie],\n },\n {\n key: 'swift',\n title: 'Swift',\n default: 'nsurlsession',\n clients: [swiftNsurlsession],\n },\n]\n"],
|
|
5
5
|
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/snippetz.js
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
10
10
|
"directory": "packages/snippetz"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.4.
|
|
12
|
+
"version": "0.4.10",
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20"
|
|
15
15
|
},
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"default": "./dist/index.js"
|
|
23
23
|
},
|
|
24
|
+
"./clients": {
|
|
25
|
+
"import": "./dist/clients/index.js",
|
|
26
|
+
"types": "./dist/clients/index.d.ts",
|
|
27
|
+
"default": "./dist/clients/index.js"
|
|
28
|
+
},
|
|
24
29
|
"./plugins/c/libcurl": {
|
|
25
30
|
"import": "./dist/plugins/c/libcurl/index.js",
|
|
26
31
|
"types": "./dist/plugins/c/libcurl/index.d.ts",
|
|
@@ -219,11 +224,11 @@
|
|
|
219
224
|
"module": "./dist/index.js",
|
|
220
225
|
"dependencies": {
|
|
221
226
|
"stringify-object": "^5.0.0",
|
|
222
|
-
"@scalar/types": "0.2.
|
|
227
|
+
"@scalar/types": "0.2.16"
|
|
223
228
|
},
|
|
224
229
|
"devDependencies": {
|
|
225
|
-
"vite": "
|
|
226
|
-
"@scalar/build-tooling": "0.2.
|
|
230
|
+
"vite": "7.1.5",
|
|
231
|
+
"@scalar/build-tooling": "0.2.7"
|
|
227
232
|
},
|
|
228
233
|
"scripts": {
|
|
229
234
|
"build": "scalar-build-esbuild",
|
package/dist/clients.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../src/clients.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,EAyH3B,CAAA"}
|
package/dist/clients.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { cLibcurl } from "./plugins/c/libcurl/libcurl.js";
|
|
2
|
-
import { clojureCljhttp } from "./plugins/clojure/clj_http/index.js";
|
|
3
|
-
import { csharpHttpclient } from "./plugins/csharp/httpclient/index.js";
|
|
4
|
-
import { csharpRestsharp } from "./plugins/csharp/restsharp/index.js";
|
|
5
|
-
import { dartHttp } from "./plugins/dart/http/index.js";
|
|
6
|
-
import { goNative } from "./plugins/go/native/index.js";
|
|
7
|
-
import { httpHttp11 } from "./plugins/http/http11/index.js";
|
|
8
|
-
import { javaAsynchttp } from "./plugins/java/asynchttp/index.js";
|
|
9
|
-
import { javaNethttp } from "./plugins/java/nethttp/nethttp.js";
|
|
10
|
-
import { javaOkhttp } from "./plugins/java/okhttp/okhttp.js";
|
|
11
|
-
import { javaUnirest } from "./plugins/java/unirest/unirest.js";
|
|
12
|
-
import { jsAxios } from "./plugins/js/axios/index.js";
|
|
13
|
-
import { jsFetch } from "./plugins/js/fetch/index.js";
|
|
14
|
-
import { jsJquery } from "./plugins/js/jquery/index.js";
|
|
15
|
-
import { jsOfetch } from "./plugins/js/ofetch/index.js";
|
|
16
|
-
import { jsXhr } from "./plugins/js/xhr/index.js";
|
|
17
|
-
import { kotlinOkhttp } from "./plugins/kotlin/okhttp/index.js";
|
|
18
|
-
import { nodeAxios } from "./plugins/node/axios/index.js";
|
|
19
|
-
import { nodeFetch } from "./plugins/node/fetch/index.js";
|
|
20
|
-
import { nodeOfetch } from "./plugins/node/ofetch/index.js";
|
|
21
|
-
import { nodeUndici } from "./plugins/node/undici/index.js";
|
|
22
|
-
import { objcNsurlsession } from "./plugins/objc/nsurlsession/index.js";
|
|
23
|
-
import { ocamlCohttp } from "./plugins/ocaml/cohttp/index.js";
|
|
24
|
-
import { phpCurl } from "./plugins/php/curl/index.js";
|
|
25
|
-
import { phpGuzzle } from "./plugins/php/guzzle/index.js";
|
|
26
|
-
import { powershellRestmethod } from "./plugins/powershell/restmethod/index.js";
|
|
27
|
-
import { powershellWebrequest } from "./plugins/powershell/webrequest/index.js";
|
|
28
|
-
import { pythonPython3 } from "./plugins/python/python3/index.js";
|
|
29
|
-
import { pythonRequests } from "./plugins/python/requests/index.js";
|
|
30
|
-
import { pythonHttpxSync, pythonHttpxAsync } from "./plugins/python/httpx/index.js";
|
|
31
|
-
import { rHttr } from "./plugins/r/httr/index.js";
|
|
32
|
-
import { rubyNative } from "./plugins/ruby/native/index.js";
|
|
33
|
-
import { rustReqwest } from "./plugins/rust/reqwest/index.js";
|
|
34
|
-
import { shellCurl } from "./plugins/shell/curl/index.js";
|
|
35
|
-
import { shellHttpie } from "./plugins/shell/httpie/index.js";
|
|
36
|
-
import { shellWget } from "./plugins/shell/wget/index.js";
|
|
37
|
-
import { swiftNsurlsession } from "./plugins/swift/nsurlsession/index.js";
|
|
38
|
-
const clients = [
|
|
39
|
-
{
|
|
40
|
-
key: "c",
|
|
41
|
-
title: "C",
|
|
42
|
-
default: "libcurl",
|
|
43
|
-
clients: [cLibcurl]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: "csharp",
|
|
47
|
-
title: "C#",
|
|
48
|
-
default: "restsharp",
|
|
49
|
-
clients: [csharpHttpclient, csharpRestsharp]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
key: "clojure",
|
|
53
|
-
title: "Clojure",
|
|
54
|
-
default: "clj_http",
|
|
55
|
-
clients: [clojureCljhttp]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
key: "dart",
|
|
59
|
-
title: "Dart",
|
|
60
|
-
default: "http",
|
|
61
|
-
clients: [dartHttp]
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
key: "go",
|
|
65
|
-
title: "Go",
|
|
66
|
-
default: "native",
|
|
67
|
-
clients: [goNative]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
key: "http",
|
|
71
|
-
title: "HTTP",
|
|
72
|
-
default: "http1.1",
|
|
73
|
-
clients: [httpHttp11]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
key: "java",
|
|
77
|
-
title: "Java",
|
|
78
|
-
default: "unirest",
|
|
79
|
-
clients: [javaAsynchttp, javaNethttp, javaOkhttp, javaUnirest]
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
key: "js",
|
|
83
|
-
title: "JavaScript",
|
|
84
|
-
default: "fetch",
|
|
85
|
-
clients: [jsFetch, jsAxios, jsOfetch, jsJquery, jsXhr]
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
key: "kotlin",
|
|
89
|
-
title: "Kotlin",
|
|
90
|
-
default: "okhttp",
|
|
91
|
-
clients: [kotlinOkhttp]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
key: "node",
|
|
95
|
-
title: "Node.js",
|
|
96
|
-
default: "fetch",
|
|
97
|
-
clients: [nodeFetch, nodeAxios, nodeOfetch, nodeUndici]
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
key: "objc",
|
|
101
|
-
title: "Objective-C",
|
|
102
|
-
default: "nsurlsession",
|
|
103
|
-
clients: [objcNsurlsession]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
key: "ocaml",
|
|
107
|
-
title: "OCaml",
|
|
108
|
-
default: "cohttp",
|
|
109
|
-
clients: [ocamlCohttp]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
key: "php",
|
|
113
|
-
title: "PHP",
|
|
114
|
-
default: "curl",
|
|
115
|
-
clients: [phpCurl, phpGuzzle]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "powershell",
|
|
119
|
-
title: "Powershell",
|
|
120
|
-
default: "webrequest",
|
|
121
|
-
clients: [powershellWebrequest, powershellRestmethod]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
key: "python",
|
|
125
|
-
title: "Python",
|
|
126
|
-
default: "python3",
|
|
127
|
-
clients: [pythonPython3, pythonRequests, pythonHttpxSync, pythonHttpxAsync]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
key: "r",
|
|
131
|
-
title: "R",
|
|
132
|
-
default: "httr",
|
|
133
|
-
clients: [rHttr]
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
key: "ruby",
|
|
137
|
-
title: "Ruby",
|
|
138
|
-
default: "native",
|
|
139
|
-
clients: [rubyNative]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
key: "rust",
|
|
143
|
-
title: "Rust",
|
|
144
|
-
default: "reqwest",
|
|
145
|
-
clients: [rustReqwest]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
key: "shell",
|
|
149
|
-
title: "Shell",
|
|
150
|
-
default: "curl",
|
|
151
|
-
clients: [shellCurl, shellWget, shellHttpie]
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
key: "swift",
|
|
155
|
-
title: "Swift",
|
|
156
|
-
default: "nsurlsession",
|
|
157
|
-
clients: [swiftNsurlsession]
|
|
158
|
-
}
|
|
159
|
-
];
|
|
160
|
-
export {
|
|
161
|
-
clients
|
|
162
|
-
};
|
|
163
|
-
//# sourceMappingURL=clients.js.map
|