HttpResponse
Overview
Location
- Reference: Sugar
- Namespace: Sugar
Code
property Code: Int32 read;
Int32 Code { get; }
var Code: Int32 { get{} }
Int32 Code { __get; }
ReadOnly Property Code() As Int32
Exception
property Exception: Exception read write;
Exception Exception { get; set; }
var Exception: Exception { get{} set{} }
Exception Exception { __get; __set; }
Property Exception() As Exception
GetContentAsBinary
method GetContentAsBinary(contentCallback: not nullable HttpContentResponseBlock<Binary>)
void GetContentAsBinary(HttpContentResponseBlock<Binary>! contentCallback)
func GetContentAsBinary(_ contentCallback: HttpContentResponseBlock<Binary>)
void GetContentAsBinary(HttpContentResponseBlock<Binary> contentCallback)
Sub GetContentAsBinary(contentCallback As HttpContentResponseBlock<Binary>)
Parameters:
- contentCallback:
GetContentAsBinarySynchronous
method GetContentAsBinarySynchronous: not nullable Binary
Binary! GetContentAsBinarySynchronous()
func GetContentAsBinarySynchronous() -> Binary
Binary GetContentAsBinarySynchronous()
Function GetContentAsBinarySynchronous() As Binary
GetContentAsJson
method GetContentAsJson(contentCallback: not nullable HttpContentResponseBlock<JsonDocument>)
void GetContentAsJson(HttpContentResponseBlock<JsonDocument>! contentCallback)
func GetContentAsJson(_ contentCallback: HttpContentResponseBlock<JsonDocument>)
void GetContentAsJson(HttpContentResponseBlock<JsonDocument> contentCallback)
Sub GetContentAsJson(contentCallback As HttpContentResponseBlock<JsonDocument>)
Parameters:
- contentCallback:
GetContentAsJsonSynchronous
method GetContentAsJsonSynchronous: not nullable JsonDocument
JsonDocument! GetContentAsJsonSynchronous()
func GetContentAsJsonSynchronous() -> JsonDocument
JsonDocument GetContentAsJsonSynchronous()
Function GetContentAsJsonSynchronous() As JsonDocument
GetContentAsString
method GetContentAsString(aEncoding: Encoding; contentCallback: not nullable HttpContentResponseBlock<String>)
void GetContentAsString(Encoding aEncoding, HttpContentResponseBlock<String>! contentCallback)
func GetContentAsString(_ aEncoding: Encoding, _ contentCallback: HttpContentResponseBlock<String>)
void GetContentAsString(Encoding aEncoding, HttpContentResponseBlock<String> contentCallback)
Sub GetContentAsString(aEncoding As Encoding, contentCallback As HttpContentResponseBlock<String>)
Parameters:
- aEncoding:
- contentCallback:
GetContentAsStringSynchronous
Parameters:
- aEncoding:
GetContentAsXml
method GetContentAsXml(contentCallback: not nullable HttpContentResponseBlock<XmlDocument>)
void GetContentAsXml(HttpContentResponseBlock<XmlDocument>! contentCallback)
func GetContentAsXml(_ contentCallback: HttpContentResponseBlock<XmlDocument>)
void GetContentAsXml(HttpContentResponseBlock<XmlDocument> contentCallback)
Sub GetContentAsXml(contentCallback As HttpContentResponseBlock<XmlDocument>)
Parameters:
- contentCallback:
GetContentAsXmlSynchronous
method GetContentAsXmlSynchronous: not nullable XmlDocument
XmlDocument! GetContentAsXmlSynchronous()
func GetContentAsXmlSynchronous() -> XmlDocument
XmlDocument GetContentAsXmlSynchronous()
Function GetContentAsXmlSynchronous() As XmlDocument
Headers
SaveContentAsFile
method SaveContentAsFile(aTargetFile: File; contentCallback: not nullable HttpContentResponseBlock<File>)
void SaveContentAsFile(File aTargetFile, HttpContentResponseBlock<File>! contentCallback)
func SaveContentAsFile(_ aTargetFile: File, _ contentCallback: HttpContentResponseBlock<File>)
void SaveContentAsFile(File aTargetFile, HttpContentResponseBlock<File> contentCallback)
Sub SaveContentAsFile(aTargetFile As File, contentCallback As HttpContentResponseBlock<File>)
Parameters:
- aTargetFile:
- contentCallback:
Success
Code
property Code: Int32 read;
Int32 Code { get; }
var Code: Int32 { get{} }
Int32 Code { __get; }
ReadOnly Property Code() As Int32
Exception
property Exception: Exception read write;
Exception Exception { get; set; }
var Exception: Exception { get{} set{} }
Exception Exception { __get; __set; }
Property Exception() As Exception
Headers
Success
GetContentAsBinary
method GetContentAsBinary(contentCallback: not nullable HttpContentResponseBlock<Binary>)
void GetContentAsBinary(HttpContentResponseBlock<Binary>! contentCallback)
func GetContentAsBinary(_ contentCallback: HttpContentResponseBlock<Binary>)
void GetContentAsBinary(HttpContentResponseBlock<Binary> contentCallback)
Sub GetContentAsBinary(contentCallback As HttpContentResponseBlock<Binary>)
Parameters:
- contentCallback:
GetContentAsBinarySynchronous
method GetContentAsBinarySynchronous: not nullable Binary
Binary! GetContentAsBinarySynchronous()
func GetContentAsBinarySynchronous() -> Binary
Binary GetContentAsBinarySynchronous()
Function GetContentAsBinarySynchronous() As Binary
GetContentAsJson
method GetContentAsJson(contentCallback: not nullable HttpContentResponseBlock<JsonDocument>)
void GetContentAsJson(HttpContentResponseBlock<JsonDocument>! contentCallback)
func GetContentAsJson(_ contentCallback: HttpContentResponseBlock<JsonDocument>)
void GetContentAsJson(HttpContentResponseBlock<JsonDocument> contentCallback)
Sub GetContentAsJson(contentCallback As HttpContentResponseBlock<JsonDocument>)
Parameters:
- contentCallback:
GetContentAsJsonSynchronous
method GetContentAsJsonSynchronous: not nullable JsonDocument
JsonDocument! GetContentAsJsonSynchronous()
func GetContentAsJsonSynchronous() -> JsonDocument
JsonDocument GetContentAsJsonSynchronous()
Function GetContentAsJsonSynchronous() As JsonDocument
GetContentAsString
method GetContentAsString(aEncoding: Encoding; contentCallback: not nullable HttpContentResponseBlock<String>)
void GetContentAsString(Encoding aEncoding, HttpContentResponseBlock<String>! contentCallback)
func GetContentAsString(_ aEncoding: Encoding, _ contentCallback: HttpContentResponseBlock<String>)
void GetContentAsString(Encoding aEncoding, HttpContentResponseBlock<String> contentCallback)
Sub GetContentAsString(aEncoding As Encoding, contentCallback As HttpContentResponseBlock<String>)
Parameters:
- aEncoding:
- contentCallback:
GetContentAsStringSynchronous
Parameters:
- aEncoding:
GetContentAsXml
method GetContentAsXml(contentCallback: not nullable HttpContentResponseBlock<XmlDocument>)
void GetContentAsXml(HttpContentResponseBlock<XmlDocument>! contentCallback)
func GetContentAsXml(_ contentCallback: HttpContentResponseBlock<XmlDocument>)
void GetContentAsXml(HttpContentResponseBlock<XmlDocument> contentCallback)
Sub GetContentAsXml(contentCallback As HttpContentResponseBlock<XmlDocument>)
Parameters:
- contentCallback:
GetContentAsXmlSynchronous
method GetContentAsXmlSynchronous: not nullable XmlDocument
XmlDocument! GetContentAsXmlSynchronous()
func GetContentAsXmlSynchronous() -> XmlDocument
XmlDocument GetContentAsXmlSynchronous()
Function GetContentAsXmlSynchronous() As XmlDocument
SaveContentAsFile
method SaveContentAsFile(aTargetFile: File; contentCallback: not nullable HttpContentResponseBlock<File>)
void SaveContentAsFile(File aTargetFile, HttpContentResponseBlock<File>! contentCallback)
func SaveContentAsFile(_ aTargetFile: File, _ contentCallback: HttpContentResponseBlock<File>)
void SaveContentAsFile(File aTargetFile, HttpContentResponseBlock<File> contentCallback)
Sub SaveContentAsFile(aTargetFile As File, contentCallback As HttpContentResponseBlock<File>)
Parameters:
- aTargetFile:
- contentCallback: