org.littleshoot.proxy.HttpFiltersAdapter.serverToProxyResponse()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(65)

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

HttpFiltersAdapter.serverToProxyResponse介绍

暂无

代码示例

代码示例来源:origin: JZ-Darkal/AndroidHttpCapture

@Override
public HttpObject serverToProxyResponse(HttpObject httpObject) {
  if (httpObject instanceof HttpResponse) {
    httpResponse = (HttpResponse) httpObject;
    captureContentEncoding(httpResponse);
  }
  if (httpObject instanceof HttpContent) {
    HttpContent httpContent = (HttpContent) httpObject;
    storeResponseContent(httpContent);
    if (httpContent instanceof LastHttpContent) {
      LastHttpContent lastContent = (LastHttpContent) httpContent;
      captureTrailingHeaders(lastContent);
      captureFullResponseContents();
    }
  }
  return super.serverToProxyResponse(httpObject);
}

代码示例来源:origin: misakuo/Dream-Catcher

@Override
public HttpObject serverToProxyResponse(HttpObject httpObject) {
  if (httpObject instanceof HttpResponse) {
    httpResponse = (HttpResponse) httpObject;
    captureContentEncoding(httpResponse);
  }
  if (httpObject instanceof HttpContent) {
    HttpContent httpContent = (HttpContent) httpObject;
    storeResponseContent(httpContent);
    if (httpContent instanceof LastHttpContent) {
      LastHttpContent lastContent = (LastHttpContent) httpContent;
      captureTrailingHeaders(lastContent);
      captureFullResponseContents();
    }
  }
  return super.serverToProxyResponse(httpObject);
}

代码示例来源:origin: net.lightbody.bmp/browsermob-core-littleproxy

@Override
public HttpObject serverToProxyResponse(HttpObject httpObject) {
  if (httpObject instanceof HttpResponse) {
    this.httpResponse = (HttpResponse) httpObject;
  }
  if (httpObject instanceof HttpContent) {
    HttpContent httpContent = (HttpContent) httpObject;
    storeResponseContent(httpContent);
    if (httpContent instanceof LastHttpContent) {
      LastHttpContent lastContent = (LastHttpContent) httpContent;
      captureTrailingHeaders(lastContent);
      captureContentEncoding();
      captureFullResponseContents();
    }
  }
  return super.serverToProxyResponse(httpObject);
}

代码示例来源:origin: net.lightbody.bmp/browsermob-core

@Override
public HttpObject serverToProxyResponse(HttpObject httpObject) {
  if (httpObject instanceof HttpResponse) {
    httpResponse = (HttpResponse) httpObject;
    captureContentEncoding(httpResponse);
  }
  if (httpObject instanceof HttpContent) {
    HttpContent httpContent = (HttpContent) httpObject;
    storeResponseContent(httpContent);
    if (httpContent instanceof LastHttpContent) {
      LastHttpContent lastContent = (LastHttpContent) httpContent;
      captureTrailingHeaders(lastContent);
      captureFullResponseContents();
    }
  }
  return super.serverToProxyResponse(httpObject);
}

相关文章