org.apache.nutch.protocol.httpclient
Class HttpResponse
java.lang.Object
org.apache.nutch.protocol.httpclient.HttpResponse
- public class HttpResponse
- extends Object
An HTTP response.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResponse
public HttpResponse(URL url)
throws IOException
getCode
public int getCode()
- Returns the response code.
getHeader
public String getHeader(String name)
- Returns the value of a named header.
getContent
public byte[] getContent()
toContent
public Content toContent()
Copyright © 2006 The Apache Software Foundation