sing-box/docs/configuration/outbound/http.md

59 lines
721 B
Markdown
Raw Permalink Normal View History

`http` outbound is a HTTP CONNECT proxy client.
2022-07-08 10:48:43 +00:00
### Structure
```json
{
2022-08-31 05:21:29 +00:00
"type": "http",
"tag": "http-out",
"server": "127.0.0.1",
"server_port": 1080,
"username": "sekai",
"password": "admin",
2023-04-14 13:18:28 +00:00
"path": "",
"headers": {},
2022-08-31 05:21:29 +00:00
"tls": {},
... // Dial Fields
2022-07-08 10:48:43 +00:00
}
```
2022-08-31 05:21:29 +00:00
### Fields
2022-07-08 10:48:43 +00:00
#### server
==Required==
2022-07-08 10:48:43 +00:00
The server address.
#### server_port
==Required==
2022-07-08 10:48:43 +00:00
The server port.
#### username
Basic authorization username.
#### password
Basic authorization password.
2023-04-14 13:18:28 +00:00
#### path
Path of HTTP request.
#### headers
Extra headers of HTTP request.
2022-07-27 04:03:07 +00:00
#### tls
TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
2022-07-27 04:03:07 +00:00
2022-07-08 10:48:43 +00:00
### Dial Fields
2022-08-31 05:21:29 +00:00
See [Dial Fields](/configuration/shared/dial) for details.