mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-19 00:57:13 +08:00
revert(log/httptrace-pro): 请求 URI => 请求 URL,记录协议、域名信息(保持尽可能完整)
This commit is contained in:
@@ -43,9 +43,9 @@ public class LogRequest {
|
||||
private String method;
|
||||
|
||||
/**
|
||||
* 请求 URI
|
||||
* 请求 URL
|
||||
*/
|
||||
private URI uri;
|
||||
private URI url;
|
||||
|
||||
/**
|
||||
* IP
|
||||
@@ -84,7 +84,7 @@ public class LogRequest {
|
||||
|
||||
public LogRequest(RecordableHttpRequest request, Set<Include> includes) {
|
||||
this.method = request.getMethod();
|
||||
this.uri = request.getUri();
|
||||
this.url = request.getUrl();
|
||||
this.ip = request.getIp();
|
||||
this.headers = (includes.contains(Include.REQUEST_HEADERS)) ? request.getHeaders() : null;
|
||||
if (includes.contains(Include.REQUEST_BODY)) {
|
||||
|
@@ -39,11 +39,11 @@ public interface RecordableHttpRequest {
|
||||
String getMethod();
|
||||
|
||||
/**
|
||||
* 获取 URI
|
||||
* 获取 URL
|
||||
*
|
||||
* @return URI
|
||||
* @return URL
|
||||
*/
|
||||
URI getUri();
|
||||
URI getUrl();
|
||||
|
||||
/**
|
||||
* 获取 IP
|
||||
|
Reference in New Issue
Block a user