请求用户
()
| 1349 | |
| 1350 | // 请求用户 |
| 1351 | func (this *HTTPRequest) requestRemoteUser() string { |
| 1352 | username, _, ok := this.RawReq.BasicAuth() |
| 1353 | if !ok { |
| 1354 | return "" |
| 1355 | } |
| 1356 | return username |
| 1357 | } |
| 1358 | |
| 1359 | // Path 请求的URL中路径部分 |
| 1360 | func (this *HTTPRequest) Path() string { |