HTTPClient

Inherits: RefCounted < Object

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

Properties

bool

blocking_mode_enabled

false

StreamPeer

connection

int

read_chunk_size

65536

Methods

void

close ( )

Error

connect_to_host ( String host, int port=-1, TLSOptions tls_options=null )

int

get_response_body_length ( ) const

int

get_response_code ( ) const

PackedStringArray

get_response_headers ( )

Dictionary

get_response_headers_as_dictionary ( )

Status

get_status ( ) const

bool

has_response ( ) const

bool

is_response_chunked ( ) const

Error

poll ( )

String

query_string_from_dict ( Dictionary fields )

PackedByteArray

read_response_body_chunk ( )

Error

request ( Method method, String url, PackedStringArray headers, String body=”” )

Error

request_raw ( Method method, String url, PackedStringArray headers, PackedByteArray body )

void

set_http_proxy ( String host, int port )

void

set_https_proxy ( String host, int port )


Enumerations

enum Method:

Method METHOD_GET = 0

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

Method METHOD_HEAD = 1

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

Method METHOD_POST = 2

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

Method METHOD_PUT = 3

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

Method METHOD_DELETE = 4

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

Method METHOD_OPTIONS = 5

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

Method METHOD_TRACE = 6

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

Method METHOD_CONNECT = 7

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

Method METHOD_PATCH = 8

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

Method METHOD_MAX = 9

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


enum Status:

Status STATUS_DISCONNECTED = 0

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

Status STATUS_RESOLVING = 1

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

Status STATUS_CANT_RESOLVE = 2

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

Status STATUS_CONNECTING = 3

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

Status STATUS_CANT_CONNECT = 4

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

Status STATUS_CONNECTED = 5

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

Status STATUS_REQUESTING = 6

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

Status STATUS_BODY = 7

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

Status STATUS_CONNECTION_ERROR = 8

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

Status STATUS_TLS_HANDSHAKE_ERROR = 9

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


enum ResponseCode:

ResponseCode RESPONSE_CONTINUE = 100

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

ResponseCode RESPONSE_SWITCHING_PROTOCOLS = 101

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

ResponseCode RESPONSE_PROCESSING = 102

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

ResponseCode RESPONSE_OK = 200

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

ResponseCode RESPONSE_CREATED = 201

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

ResponseCode RESPONSE_ACCEPTED = 202

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

ResponseCode RESPONSE_NON_AUTHORITATIVE_INFORMATION = 203

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

ResponseCode RESPONSE_NO_CONTENT = 204

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

ResponseCode RESPONSE_RESET_CONTENT = 205

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

ResponseCode RESPONSE_PARTIAL_CONTENT = 206

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

ResponseCode RESPONSE_MULTI_STATUS = 207

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

ResponseCode RESPONSE_ALREADY_REPORTED = 208

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

ResponseCode RESPONSE_IM_USED = 226

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

ResponseCode RESPONSE_MULTIPLE_CHOICES = 300

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

ResponseCode RESPONSE_MOVED_PERMANENTLY = 301

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

ResponseCode RESPONSE_FOUND = 302

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

ResponseCode RESPONSE_SEE_OTHER = 303

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

ResponseCode RESPONSE_NOT_MODIFIED = 304

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

ResponseCode RESPONSE_USE_PROXY = 305

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

ResponseCode RESPONSE_SWITCH_PROXY = 306

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

ResponseCode RESPONSE_TEMPORARY_REDIRECT = 307

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

ResponseCode RESPONSE_PERMANENT_REDIRECT = 308

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

ResponseCode RESPONSE_BAD_REQUEST = 400

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

ResponseCode RESPONSE_UNAUTHORIZED = 401

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

ResponseCode RESPONSE_PAYMENT_REQUIRED = 402

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

ResponseCode RESPONSE_FORBIDDEN = 403

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

ResponseCode RESPONSE_NOT_FOUND = 404

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

ResponseCode RESPONSE_METHOD_NOT_ALLOWED = 405

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

ResponseCode RESPONSE_NOT_ACCEPTABLE = 406

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

ResponseCode RESPONSE_PROXY_AUTHENTICATION_REQUIRED = 407

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

ResponseCode RESPONSE_REQUEST_TIMEOUT = 408

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

ResponseCode RESPONSE_CONFLICT = 409

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

ResponseCode RESPONSE_GONE = 410

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

ResponseCode RESPONSE_LENGTH_REQUIRED = 411

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

ResponseCode RESPONSE_PRECONDITION_FAILED = 412

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

ResponseCode RESPONSE_REQUEST_ENTITY_TOO_LARGE = 413

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

ResponseCode RESPONSE_REQUEST_URI_TOO_LONG = 414

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

ResponseCode RESPONSE_UNSUPPORTED_MEDIA_TYPE = 415

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

ResponseCode RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE = 416

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

ResponseCode RESPONSE_EXPECTATION_FAILED = 417

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

ResponseCode RESPONSE_IM_A_TEAPOT = 418

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

ResponseCode RESPONSE_MISDIRECTED_REQUEST = 421

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

ResponseCode RESPONSE_UNPROCESSABLE_ENTITY = 422

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

ResponseCode RESPONSE_LOCKED = 423

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

ResponseCode RESPONSE_FAILED_DEPENDENCY = 424

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

ResponseCode RESPONSE_UPGRADE_REQUIRED = 426

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

ResponseCode RESPONSE_PRECONDITION_REQUIRED = 428

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

ResponseCode RESPONSE_TOO_MANY_REQUESTS = 429

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

ResponseCode RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE = 431

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

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

ResponseCode RESPONSE_INTERNAL_SERVER_ERROR = 500

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

ResponseCode RESPONSE_NOT_IMPLEMENTED = 501

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

ResponseCode RESPONSE_BAD_GATEWAY = 502

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

ResponseCode RESPONSE_SERVICE_UNAVAILABLE = 503

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

ResponseCode RESPONSE_GATEWAY_TIMEOUT = 504

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

ResponseCode RESPONSE_HTTP_VERSION_NOT_SUPPORTED = 505

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

ResponseCode RESPONSE_VARIANT_ALSO_NEGOTIATES = 506

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

ResponseCode RESPONSE_INSUFFICIENT_STORAGE = 507

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

ResponseCode RESPONSE_LOOP_DETECTED = 508

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

ResponseCode RESPONSE_NOT_EXTENDED = 510

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

ResponseCode RESPONSE_NETWORK_AUTH_REQUIRED = 511

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


Property Descriptions

bool blocking_mode_enabled = false

  • void set_blocking_mode ( bool value )

  • bool is_blocking_mode_enabled ( )

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


StreamPeer connection

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


int read_chunk_size = 65536

  • void set_read_chunk_size ( int value )

  • int get_read_chunk_size ( )

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


Method Descriptions

void close ( )

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


Error connect_to_host ( String host, int port=-1, TLSOptions tls_options=null )

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


int get_response_body_length ( ) const

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


int get_response_code ( ) const

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


PackedStringArray get_response_headers ( )

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


Dictionary get_response_headers_as_dictionary ( )

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


Status get_status ( ) const

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


bool has_response ( ) const

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


bool is_response_chunked ( ) const

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


Error poll ( )

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


String query_string_from_dict ( Dictionary fields )

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


PackedByteArray read_response_body_chunk ( )

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


Error request ( Method method, String url, PackedStringArray headers, String body=”” )

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


Error request_raw ( Method method, String url, PackedStringArray headers, PackedByteArray body )

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!