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

 

method GetContentAsStringSynchronous(aEncoding: Encoding): not nullable String

 

String! GetContentAsStringSynchronous(Encoding aEncoding)

 

func GetContentAsStringSynchronous(_ aEncoding: Encoding) -> String

 

String GetContentAsStringSynchronous(Encoding aEncoding)

 

Function GetContentAsStringSynchronous(aEncoding As Encoding) As String

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

 

property Headers: not nullable Dictionary<String, String> read;

 

Dictionary<String, String>! Headers { get; }

 

var Headers: Dictionary<String, String> { get{} }

 

Dictionary<String, String> Headers { __get; }

 

ReadOnly Property Headers() As Dictionary<String, String>

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

 

property Success: Boolean read;

 

Boolean Success { get; }

 

var Success: Boolean { get{} }

 

Boolean Success { __get; }

 

ReadOnly Property Success() As Boolean

 

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

 

property Headers: not nullable Dictionary<String, String> read;

 

Dictionary<String, String>! Headers { get; }

 

var Headers: Dictionary<String, String> { get{} }

 

Dictionary<String, String> Headers { __get; }

 

ReadOnly Property Headers() As Dictionary<String, String>

Success

 

property Success: Boolean read;

 

Boolean Success { get; }

 

var Success: Boolean { get{} }

 

Boolean Success { __get; }

 

ReadOnly Property Success() As Boolean

 

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

 

method GetContentAsStringSynchronous(aEncoding: Encoding): not nullable String

 

String! GetContentAsStringSynchronous(Encoding aEncoding)

 

func GetContentAsStringSynchronous(_ aEncoding: Encoding) -> String

 

String GetContentAsStringSynchronous(Encoding aEncoding)

 

Function GetContentAsStringSynchronous(aEncoding As Encoding) As String

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: