You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For further examples, check out the integration tests in `tests/integration_tests.rs`
104
-
in the repository.
107
+
For further examples, check out the integration tests in `tests/integration_tests.rs` in the repository.
108
+
105
109
106
110
## Choice of HTTP backend
107
111
108
112
To communicate with InfluxDB, you can choose the HTTP backend to be used configuring the appropriate feature. We recommend sticking with the default reqwest-based client, unless you really need async-std compatibility.
109
113
110
-
***[hyper][__link5]** (through reqwest, used by default), with [rustls][__link6]
111
-
```toml
112
-
influxdb = { version = "0.7.2", features = ["derive"] }
113
-
```
114
-
115
-
***[hyper][__link7]** (through reqwest), with native TLS (OpenSSL)
116
-
```toml
117
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls"] }
118
-
```
119
-
120
-
***[hyper][__link8]** (through reqwest), with vendored native TLS (OpenSSL)
121
-
```toml
122
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls-vendored"] }
123
-
```
124
-
125
-
***[hyper][__link9]** (through surf), use this if you need tokio 0.2 compatibility
126
-
```toml
127
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "hyper-client"] }
128
-
```
129
-
130
-
***[curl][__link10]**, using [libcurl][__link11]
131
-
```toml
132
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "curl-client"] }
133
-
```
134
-
135
-
***[async-h1][__link12]** with native TLS (OpenSSL)
136
-
```toml
137
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client"] }
138
-
```
139
-
140
-
***[async-h1][__link13]** with [rustls][__link14]
141
-
```toml
142
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client-rustls"] }
143
-
```
144
-
145
-
* WebAssembly’s `window.fetch`, via `web-sys` and **[wasm-bindgen][__link15]**
146
-
```toml
147
-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "wasm-client"] }
148
-
```
114
+
-**[hyper][__link5]** (through reqwest, used by default), with [rustls][__link6]
115
+
```toml
116
+
influxdb = { version = "0.7.2", features = ["derive"] }
117
+
```
118
+
119
+
120
+
-**[hyper][__link7]** (through reqwest), with native TLS (OpenSSL)
121
+
```toml
122
+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls"] }
123
+
```
124
+
125
+
126
+
-**[hyper][__link8]** (through reqwest), with vendored native TLS (OpenSSL)
127
+
```toml
128
+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls-vendored"] }
129
+
```
130
+
131
+
132
+
-**[curl][__link9]**, using [libcurl][__link10]
133
+
```toml
134
+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "curl-client"] }
135
+
```
136
+
137
+
138
+
-**[async-h1][__link11]** with native TLS (OpenSSL)
139
+
```toml
140
+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client"] }
141
+
```
142
+
143
+
144
+
-**[async-h1][__link12]** with [rustls][__link13]
145
+
```toml
146
+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client-rustls"] }
147
+
```
148
+
149
+
150
+
- WebAssembly’s `window.fetch`, via `web-sys` and **[wasm-bindgen][__link14]**
151
+
```toml
152
+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "wasm-client"] }
0 commit comments