org.eclipse.jetty.server.Request.getContentRead()方法的使用及代码示例

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

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

Request.getContentRead介绍

暂无

代码示例

代码示例来源:origin: io.airlift/http-server

@Override
  public void log(Request request, Response response)
  {
    Duration requestTime = new Duration(max(0, System.currentTimeMillis() - request.getTimeStamp()), TimeUnit.MILLISECONDS);
    stats.record(request.getContentRead(), response.getContentCount(), requestTime);
  }
}

代码示例来源:origin: com.teradata.airlift/http-server

@Override
  public void log(Request request, Response response)
  {
    Duration requestTime = new Duration(max(0, System.currentTimeMillis() - request.getTimeStamp()), TimeUnit.MILLISECONDS);

    long dispatchTime = request.getTimeStamp();

    Duration schedulingDelay = new Duration(max(0, dispatchTime - request.getTimeStamp()), TimeUnit.MILLISECONDS);

    stats.record(request.getMethod(), response.getStatus(), request.getContentRead(), response.getContentCount(), schedulingDelay, requestTime);
  }
}

代码示例来源:origin: com.proofpoint.platform/http-server

@Override
  public void log(Request request, Response response)
  {
    Duration requestTime = new Duration(max(0, System.currentTimeMillis() - request.getTimeStamp()), TimeUnit.MILLISECONDS);
    SSLSession sslSession = (SSLSession) request.getAttribute(REQUEST_SSL_SESSION_ATTRIBUTE);

    stats.record(request.getContentRead(), response.getContentCount(), requestTime);
    detailedRequestStats.requestTimeByCode(response.getStatus(), response.getStatus() / 100).add(requestTime);

    if (sslSession != null) {
      detailedRequestStats.tlsRequest(sslSession.getProtocol(), sslSession.getCipherSuite()).add(1);
    }
  }
}

代码示例来源:origin: com.teradata.airlift/http-server

request.getHeader("User-Agent"),
request.getHeader("Referer"),
request.getContentRead(),
request.getHeader("Content-Type"),
response.getContentCount(),

代码示例来源:origin: com.proofpoint.platform/http-server

user,
request.getHeader("User-Agent"),
request.getContentRead(),
response.getContentCount(),
response.getStatus(),

代码示例来源:origin: io.airlift/http-server

request.getHeader("User-Agent"),
request.getHeader("Referer"),
request.getContentRead(),
request.getHeader("Content-Type"),
response.getContentCount(),

代码示例来源:origin: com.teradata.airlift/http-server

when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);
when(request.getHeader("Content-Type")).thenReturn(requestContentType);
when(response.getStatus()).thenReturn(responseCode);

代码示例来源:origin: io.airlift/http-server

when(request.getUserPrincipal()).thenReturn(principal);
when(request.getMethod()).thenReturn(method);
when(request.getContentRead()).thenReturn(requestSize);
when(request.getHttpVersion()).thenReturn(HTTP_2);
when(request.getHeader("Content-Type")).thenReturn(requestContentType);

相关文章

Request类方法