public class PartialCrawlResponse extends Object
Constructor and Description |
---|
PartialCrawlResponse(net.lightbody.bmp.core.har.HarResponse harResponse)
Creates a
PartialCrawlResponse instance from an HAR capture. |
PartialCrawlResponse(org.apache.http.HttpResponse httpResponse)
Creates a
PartialCrawlResponse instance from an HTTP response message. |
Modifier and Type | Method and Description |
---|---|
List<org.apache.http.Header> |
getAllHeaders()
Returns all the headers of the response.
|
Optional<org.apache.http.Header> |
getFirstHeader(String name)
Returns the first header with the specified name of the response.
|
List<org.apache.http.Header> |
getHeaders(String name)
Returns all the headers with the specified name of the response.
|
int |
getStatusCode()
Returns the HTTP status code of the response.
|
String |
getStatusText()
Returns the status message corresponding to the status code of the response.
|
public PartialCrawlResponse(org.apache.http.HttpResponse httpResponse)
PartialCrawlResponse
instance from an HTTP response message.httpResponse
- the HTTP response messagepublic PartialCrawlResponse(net.lightbody.bmp.core.har.HarResponse harResponse)
PartialCrawlResponse
instance from an HAR capture.harResponse
- the HAR capturepublic int getStatusCode()
public String getStatusText()
public List<org.apache.http.Header> getAllHeaders()
public List<org.apache.http.Header> getHeaders(String name)
name
- the name of the headersCopyright © 2020. All rights reserved.