No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
HttpResponse Class
Namespace
Usage
Use the XML classes or JSON Classes to parse XML or JSON content in the body of a response accessed by HttpResponse.
HttpResponse Methods
The following are methods for HttpResponse. All are instance methods.
getBody()
Signature
public String getBody()
Return Value
Type: String
Usage
Limit3 MB. The HTTP request and response sizes count towards the total heap size.
getBodyAsBlob()
Signature
public Blob getBodyAsBlob()
Return Value
Type: Blob
Usage
Limit3 MB. The HTTP request and response sizes count towards the total heap size.
getBodyDocument()
Signature
public Dom.Document getBodyDocument()
Return Value
Type: Dom.Document
Example
Use it as a shortcut for:
getHeaderKeys()
Signature
public String[] getHeaderKeys()
Return Value
Type: String[]
getStatus()
Signature
public String getStatus()
Return Value
Type: String
getStatusCode()
Signature
public Integer getStatusCode()
Return Value
Type: Integer
getXmlStreamReader()
Signature
public XmlStreamReader getXmlStreamReader()
Return Value
Type: System.XmlStreamReader
Usage
Use it as a shortcut for:
setBody(String)
setBodyAsBlob(Blob)
setStatus(String)
Signature
public Void setStatus(String status)
Parameters
- status
- Type: String
Return Value
Type: Void
setStatusCode(Integer)
Signature
public Void setStatusCode(Integer statusCode)
Parameters
- statusCode
- Type: Integer
Return Value
Type: Void
toString()
Signature
public String toString()
Return Value
Type: String