org.glassfish.grizzly.http.server.Request.getTrailers()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中org.glassfish.grizzly.http.server.Request.getTrailers方法的一些代码示例,展示了Request.getTrailers的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getTrailers方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:getTrailers

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();
}

相关文章

Request类方法