HttpResponse

Overview

Location

  • Reference: Sugar
  • Namespace: Sugar

 

Code

 

property Code: Int32 read;

 

Int32 Code { get; }

 

var Code: Int32 { get{} }

 

Int32 Code { __get; }

Exception

 

property Exception: Exception read write;

 

Exception Exception { get; set; }

 

var Exception: Exception { get{} set{} }

 

Exception Exception { __get; __set; }

GetContentAsBinary

 

method GetContentAsBinary(contentCallback: not nullable HttpContentResponseBlock<Binary>)

 

void GetContentAsBinary(HttpContentResponseBlock<Binary>! contentCallback)

 

func GetContentAsBinary(_ contentCallback: HttpContentResponseBlock<Binary>)

 

void GetContentAsBinary(HttpContentResponseBlock<Binary>! contentCallback)

Parameters:

  • contentCallback:

GetContentAsBinarySynchronous

 

method GetContentAsBinarySynchronous: not nullable Binary

 

Binary! GetContentAsBinarySynchronous()

 

func GetContentAsBinarySynchronous() -> Binary

 

Binary! GetContentAsBinarySynchronous()

GetContentAsJson

 

method GetContentAsJson(contentCallback: not nullable HttpContentResponseBlock<JsonDocument>)

 

void GetContentAsJson(HttpContentResponseBlock<JsonDocument>! contentCallback)

 

func GetContentAsJson(_ contentCallback: HttpContentResponseBlock<JsonDocument>)

 

void GetContentAsJson(HttpContentResponseBlock<JsonDocument>! contentCallback)

Parameters:

  • contentCallback:

GetContentAsJsonSynchronous

 

method GetContentAsJsonSynchronous: not nullable JsonDocument

 

JsonDocument! GetContentAsJsonSynchronous()

 

func GetContentAsJsonSynchronous() -> JsonDocument

 

JsonDocument! GetContentAsJsonSynchronous()

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)

Parameters:

  • aEncoding:
  • contentCallback:

GetContentAsStringSynchronous

 

method GetContentAsStringSynchronous(aEncoding: Encoding): not nullable String

 

String! GetContentAsStringSynchronous(Encoding aEncoding)

 

func GetContentAsStringSynchronous(_ aEncoding: Encoding) -> String

 

String! GetContentAsStringSynchronous(Encoding aEncoding)

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)

Parameters:

  • contentCallback:

GetContentAsXmlSynchronous

 

method GetContentAsXmlSynchronous: not nullable XmlDocument

 

XmlDocument! GetContentAsXmlSynchronous()

 

func GetContentAsXmlSynchronous() -> XmlDocument

 

XmlDocument! GetContentAsXmlSynchronous()

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; }

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)

Parameters:

  • aTargetFile:
  • contentCallback:

Success

 

property Success: Boolean read;

 

Boolean Success { get; }

 

var Success: Boolean { get{} }

 

Boolean Success { __get; }

 

Code

 

property Code: Int32 read;

 

Int32 Code { get; }

 

var Code: Int32 { get{} }

 

Int32 Code { __get; }

Exception

 

property Exception: Exception read write;

 

Exception Exception { get; set; }

 

var Exception: Exception { get{} set{} }

 

Exception Exception { __get; __set; }

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; }

Success

 

property Success: Boolean read;

 

Boolean Success { get; }

 

var Success: Boolean { get{} }

 

Boolean Success { __get; }

 

GetContentAsBinary

 

method GetContentAsBinary(contentCallback: not nullable HttpContentResponseBlock<Binary>)

 

void GetContentAsBinary(HttpContentResponseBlock<Binary>! contentCallback)

 

func GetContentAsBinary(_ contentCallback: HttpContentResponseBlock<Binary>)

 

void GetContentAsBinary(HttpContentResponseBlock<Binary>! contentCallback)

Parameters:

  • contentCallback:

GetContentAsBinarySynchronous

 

method GetContentAsBinarySynchronous: not nullable Binary

 

Binary! GetContentAsBinarySynchronous()

 

func GetContentAsBinarySynchronous() -> Binary

 

Binary! GetContentAsBinarySynchronous()

GetContentAsJson

 

method GetContentAsJson(contentCallback: not nullable HttpContentResponseBlock<JsonDocument>)

 

void GetContentAsJson(HttpContentResponseBlock<JsonDocument>! contentCallback)

 

func GetContentAsJson(_ contentCallback: HttpContentResponseBlock<JsonDocument>)

 

void GetContentAsJson(HttpContentResponseBlock<JsonDocument>! contentCallback)

Parameters:

  • contentCallback:

GetContentAsJsonSynchronous

 

method GetContentAsJsonSynchronous: not nullable JsonDocument

 

JsonDocument! GetContentAsJsonSynchronous()

 

func GetContentAsJsonSynchronous() -> JsonDocument

 

JsonDocument! GetContentAsJsonSynchronous()

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)

Parameters:

  • aEncoding:
  • contentCallback:

GetContentAsStringSynchronous

 

method GetContentAsStringSynchronous(aEncoding: Encoding): not nullable String

 

String! GetContentAsStringSynchronous(Encoding aEncoding)

 

func GetContentAsStringSynchronous(_ aEncoding: Encoding) -> String

 

String! GetContentAsStringSynchronous(Encoding aEncoding)

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)

Parameters:

  • contentCallback:

GetContentAsXmlSynchronous

 

method GetContentAsXmlSynchronous: not nullable XmlDocument

 

XmlDocument! GetContentAsXmlSynchronous()

 

func GetContentAsXmlSynchronous() -> XmlDocument

 

XmlDocument! GetContentAsXmlSynchronous()

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)

Parameters:

  • aTargetFile:
  • contentCallback: