本文整理了Java中org.eclipse.jetty.client.api.Request.path
方法的一些代码示例,展示了Request.path
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.path
方法的具体详情如下:
包路径:org.eclipse.jetty.client.api.Request
类名称:Request
方法名:path
[英]Specifies the path - and possibly the query - of this request. If the query part is specified, parameter values must be properly URLEncoder#encode(String,String). For example, if the value for parameter "currency" is the euro symbol € then the query string for this parameter must be "currency=%E2%82%AC". For transparent encoding of parameter values, use #param(String,String).
[中]指定此请求的路径(可能还有查询)。如果指定了查询部分,则参数值必须正确设置为URLEncoder#encode(String,String)。例如,如果参数“currency”的值是欧元符号€,则此参数的查询字符串必须是“currency=%E2%82%AC”。对于参数值的透明编码,请使用#param(String,String)。
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
request.path(path);
request.path(path);
request.path(path);
break;
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
request.path(path);
request.path(path);
request.path(path);
break;
代码示例来源:origin: org.eclipse.jetty/jetty-client
request.path(path);
request.path(path);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
.scheme(HttpScheme.HTTP.asString())
.method(HttpMethod.CONNECT)
.path(target)
.header(HttpHeader.HOST.asString(), target)
.timeout(client.getConnectTimeout(), TimeUnit.MILLISECONDS);
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
.scheme(HttpScheme.HTTP.asString())
.method(HttpMethod.CONNECT)
.path(target)
.header(HttpHeader.HOST.asString(), target)
.timeout(client.getConnectTimeout(), TimeUnit.MILLISECONDS);
代码示例来源:origin: org.eclipse.jetty/jetty-client
Request connect = httpClient.newRequest(proxyAddress.getHost(), proxyAddress.getPort())
.method(HttpMethod.CONNECT)
.path(target)
.header(HttpHeader.HOST, target)
.idleTimeout(2 * connectTimeout, TimeUnit.MILLISECONDS)
代码示例来源:origin: org.eclipse.jetty.spdy/spdy-http-server
LOG.debug("Sending HTTP request to: {}", host + ":" + port);
final Request request = httpClient.newRequest(host, port)
.path(path)
.method(HttpMethod.fromString(method));
addNonSpdyHeadersToRequest(version, headers, request);
代码示例来源:origin: org.eclipse.jetty/jetty-client
newRequest.path(path);
内容来源于网络,如有侵权,请联系作者删除!