java.lang.Object
org.miaixz.bus.http.metric.http.RequestLine
This class generates the request line of an HTTP/1.1 request.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringget(Request request, Proxy.Type proxyType) Returns the request line for a given request.static StringrequestPath(UnoUrl url) Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
-
Method Details
-
get
Returns the request line for a given request.- Parameters:
request- The request.proxyType- The type of proxy being used.- Returns:
- The request line.
-
requestPath
Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request URL is. Includes the query component if it exists.- Parameters:
url- The URL.- Returns:
- The request path.
-