本文整理了Java中org.glassfish.grizzly.http.server.Request.getTrailers
方法的一些代码示例,展示了Request.getTrailers
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getTrailers
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:getTrailers
[英]Get the request trailer headers. Values may only be returned in the case of HTTP/1.1 when the request is using the transfer-encoding``chunked
or in HTTP/2 sends a second HEADERS
frame terminating the stream. An empty Map
will be returned in all other cases. While headers are typical case insensitive, the headers stored in the returned Map
will be done so in lower-case. This method should typically be called after the application has read the request body. It is safe to invoke this method if there is no body content.
[中]获取请求尾部标题。只有在HTTP/1.1中,当请求使用transfer-encoding``chunked
或在HTTP/2中发送第二个HEADERS
帧终止流时,才能返回值。在所有其他情况下,将返回一个空Map
。虽然报头通常不区分大小写,但存储在返回的Map
中的报头将以小写形式完成。此方法通常应在应用程序读取请求正文后调用。如果没有正文内容,则可以安全地调用此方法。
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> getTrailerFields() {
return request.getTrailers();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> getTrailerFields() {
return request.getTrailers();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> getTrailerFields() {
return request.getTrailers();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> getTrailerFields() {
return request.getTrailers();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> getTrailerFields() {
return request.getTrailers();
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> getTrailerFields() {
return request.getTrailers();
}
代码示例来源:origin: org.glassfish.main.web/web-core
@Override
public Map<String, String> getTrailerFields() {
return coyoteRequest.getTrailers();
}
内容来源于网络,如有侵权,请联系作者删除!