HTTPRequest

Inherits: Node < Object

Inherited By: JamHttpRequestPool.HttpHolder

There is currently no description for this class. Please help us by contributing one!

Properties

bool

accept_gzip

true

int

body_size_limit

-1

int

download_chunk_size

65536

String

download_file

""

int

max_redirects

8

float

timeout

0.0

bool

use_threads

false

Methods

void

cancel_request ( )

int

get_body_size ( ) const

int

get_downloaded_bytes ( ) const

Status

get_http_client_status ( ) const

Error

request ( String url, PackedStringArray custom_headers=PackedStringArray(), Method method=0, String request_data=”” )

Error

request_raw ( String url, PackedStringArray custom_headers=PackedStringArray(), Method method=0, PackedByteArray request_data_raw=PackedByteArray() )

void

set_http_proxy ( String host, int port )

void

set_https_proxy ( String host, int port )

void

set_tls_options ( TLSOptions client_options )


Signals

request_completed ( int result, int response_code, PackedStringArray headers, PackedByteArray body )

There is currently no description for this signal. Please help us by contributing one!


Enumerations

enum Result:

Result RESULT_SUCCESS = 0

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_CHUNKED_BODY_SIZE_MISMATCH = 1

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_CANT_CONNECT = 2

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_CANT_RESOLVE = 3

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_CONNECTION_ERROR = 4

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_TLS_HANDSHAKE_ERROR = 5

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_NO_RESPONSE = 6

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_BODY_SIZE_LIMIT_EXCEEDED = 7

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_BODY_DECOMPRESS_FAILED = 8

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_REQUEST_FAILED = 9

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_DOWNLOAD_FILE_CANT_OPEN = 10

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_DOWNLOAD_FILE_WRITE_ERROR = 11

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_REDIRECT_LIMIT_REACHED = 12

There is currently no description for this enum. Please help us by contributing one!

Result RESULT_TIMEOUT = 13

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

bool accept_gzip = true

  • void set_accept_gzip ( bool value )

  • bool is_accepting_gzip ( )

There is currently no description for this property. Please help us by contributing one!


int body_size_limit = -1

  • void set_body_size_limit ( int value )

  • int get_body_size_limit ( )

There is currently no description for this property. Please help us by contributing one!


int download_chunk_size = 65536

  • void set_download_chunk_size ( int value )

  • int get_download_chunk_size ( )

There is currently no description for this property. Please help us by contributing one!


String download_file = ""

  • void set_download_file ( String value )

  • String get_download_file ( )

There is currently no description for this property. Please help us by contributing one!


int max_redirects = 8

  • void set_max_redirects ( int value )

  • int get_max_redirects ( )

There is currently no description for this property. Please help us by contributing one!


float timeout = 0.0

  • void set_timeout ( float value )

  • float get_timeout ( )

There is currently no description for this property. Please help us by contributing one!


bool use_threads = false

  • void set_use_threads ( bool value )

  • bool is_using_threads ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void cancel_request ( )

There is currently no description for this method. Please help us by contributing one!


int get_body_size ( ) const

There is currently no description for this method. Please help us by contributing one!


int get_downloaded_bytes ( ) const

There is currently no description for this method. Please help us by contributing one!


Status get_http_client_status ( ) const

There is currently no description for this method. Please help us by contributing one!


Error request ( String url, PackedStringArray custom_headers=PackedStringArray(), Method method=0, String request_data=”” )

There is currently no description for this method. Please help us by contributing one!


Error request_raw ( String url, PackedStringArray custom_headers=PackedStringArray(), Method method=0, PackedByteArray request_data_raw=PackedByteArray() )

There is currently no description for this method. Please help us by contributing one!


void set_http_proxy ( String host, int port )

There is currently no description for this method. Please help us by contributing one!


void set_https_proxy ( String host, int port )

There is currently no description for this method. Please help us by contributing one!


void set_tls_options ( TLSOptions client_options )

There is currently no description for this method. Please help us by contributing one!