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

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

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

Request.isHead介绍

暂无

代码示例

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

protected boolean sendResponse(MetaData.Response info, ByteBuffer content, boolean complete, final Callback callback)
{
  boolean committing = _committed.compareAndSet(false, true);
  if (committing)
  {
    // We need an info to commit
    if (info==null)
      info = _response.newResponseMetaData();
    commit(info);
    // wrap callback to process 100 responses
    final int status=info.getStatus();
    final Callback committed = (status<200&&status>=100)?new Commit100Callback(callback):new CommitCallback(callback);
    // committing write
    _transport.send(info, _request.isHead(), content, complete, committed);
  }
  else if (info==null)
  {
    // This is a normal write
    _transport.send(null,_request.isHead(), content, complete, callback);
  }
  else
  {
    callback.failed(new IllegalStateException("committed"));
  }
  return committing;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

protected ResponseInfo newResponseInfo()
{
  if (_status == HttpStatus.NOT_SET_000)
    _status = HttpStatus.OK_200;
  return new ResponseInfo(_channel.getRequest().getHttpVersion(), _fields, getLongContentLength(), getStatus(), getReason(), _channel.getRequest().isHead());
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

protected ResponseInfo newResponseInfo()
{
  if (_status == HttpStatus.NOT_SET_000)
    _status = HttpStatus.OK_200;
  return new ResponseInfo(_channel.getRequest().getHttpVersion(), _fields, getLongContentLength(), getStatus(), getReason(), _channel.getRequest().isHead());
}

代码示例来源:origin: Nextdoor/bender

protected ResponseInfo newResponseInfo()
{
  return new ResponseInfo(_channel.getRequest().getHttpVersion(), _fields, getLongContentLength(), getStatus(), getReason(), _channel.getRequest().isHead());
}

代码示例来源:origin: jenkinsci/winstone

_transport.send(info, _request.isHead(), content, complete, committed);
_transport.send(null,_request.isHead(), content, complete, new ContentCallback(callback, content, complete));

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

if (_channel.getRequest().isHead())

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

if (_channel.getRequest().isHead())

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

ResponseInfo info = new ResponseInfo(_request.getHttpVersion(), fields, 0, HttpStatus.INTERNAL_SERVER_ERROR_500, null, _request.isHead());
boolean committed = commitResponse(info, null, true);
if (!committed)

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

ResponseInfo info = new ResponseInfo(_request.getHttpVersion(), fields, 0, HttpStatus.INTERNAL_SERVER_ERROR_500, null, _request.isHead());
boolean committed = commitResponse(info, null, true);
if (!committed)

代码示例来源:origin: Nextdoor/bender

ResponseInfo info = new ResponseInfo(_request.getHttpVersion(), fields, 0, HttpStatus.INTERNAL_SERVER_ERROR_500, null, _request.isHead());
boolean committed = sendResponse(info, null, true);
if (!committed)

代码示例来源:origin: Nextdoor/bender

if (_channel.getRequest().isHead() || _generator.isNoContent())

代码示例来源:origin: jenkinsci/winstone

boolean hasContent = !(_request.isHead() ||
    HttpMethod.CONNECT.is(_request.getMethod()) && status == HttpStatus.OK_200 ||
    HttpStatus.isInformational(status) ||

相关文章

Request类方法