---
url: /configuration/inbound/http.md
description: HTTP CONNECT 与普通请求转发入站
---

# http

接受 HTTP CONNECT 隧道和普通 HTTP 请求转发。

```yaml check
inbounds:
  http:
    type: http
    listen: 127.0.0.1:8080

dns:
  servers:
    default: {type: udp, address: 127.0.0.1:53}
  final: default
```

## 字段

### type

* 类型：字符串。
* 必填：是，第一项。
* 取值：`http`。

### listen

* 类型：`SocketAddr`。
* 必填：是。

### tls

* 类型：[TLS 服务端块](/configuration/shared/tls-server)。
* 必填：可选。
* 默认：明文。

### users

* 类型：名字到密码的映射。
* 必填：可选。
* 默认：空；空表示 Basic 认证不启用。

## 说明

支持 TCP 代理与 UDP over stream；`network`、`udp_timeout`、`full_cone` 可用。可以套支持的 `transport`，也可以用 `fallback` 处理明显不是代理的请求。

## 相关

* [共享 transport](/configuration/shared/transport)
* [共享 fallback](/configuration/shared/fallback)
