[][src]Struct gdnative::HTTPClient

pub struct HTTPClient { /* fields omitted */ }

core class HTTPClient inherits Reference (reference counted).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

The lifetime of this object is automatically managed through reference counting.

Class hierarchy

HTTPClient inherits methods from:

Methods

impl HTTPClient[src]

Constants

pub const RESPONSE_MOVED_PERMANENTLY: i64[src]

pub const RESPONSE_NOT_EXTENDED: i64[src]

pub const METHOD_GET: i64[src]

pub const RESPONSE_GATEWAY_TIMEOUT: i64[src]

pub const RESPONSE_PROXY_AUTHENTICATION_REQUIRED: i64[src]

pub const RESPONSE_TOO_MANY_REQUESTS: i64[src]

pub const STATUS_SSL_HANDSHAKE_ERROR: i64[src]

pub const METHOD_PUT: i64[src]

pub const RESPONSE_ACCEPTED: i64[src]

pub const RESPONSE_FAILED_DEPENDENCY: i64[src]

pub const RESPONSE_NOT_ACCEPTABLE: i64[src]

pub const RESPONSE_NOT_IMPLEMENTED: i64[src]

pub const RESPONSE_SERVICE_UNAVAILABLE: i64[src]

pub const METHOD_DELETE: i64[src]

pub const RESPONSE_UPGRADE_REQUIRED: i64[src]

pub const RESPONSE_HTTP_VERSION_NOT_SUPPORTED: i64[src]

pub const RESPONSE_IM_USED: i64[src]

pub const RESPONSE_NON_AUTHORITATIVE_INFORMATION: i64[src]

pub const STATUS_CANT_CONNECT: i64[src]

pub const RESPONSE_LENGTH_REQUIRED: i64[src]

pub const RESPONSE_RESET_CONTENT: i64[src]

pub const RESPONSE_INSUFFICIENT_STORAGE: i64[src]

pub const RESPONSE_PRECONDITION_FAILED: i64[src]

pub const RESPONSE_PRECONDITION_REQUIRED: i64[src]

pub const RESPONSE_VARIANT_ALSO_NEGOTIATES: i64[src]

pub const METHOD_CONNECT: i64[src]

pub const RESPONSE_EXPECTATION_FAILED: i64[src]

pub const RESPONSE_ALREADY_REPORTED: i64[src]

pub const RESPONSE_UNSUPPORTED_MEDIA_TYPE: i64[src]

pub const RESPONSE_OK: i64[src]

pub const RESPONSE_REQUEST_TIMEOUT: i64[src]

pub const RESPONSE_SWITCHING_PROTOCOLS: i64[src]

pub const RESPONSE_TEMPORARY_REDIRECT: i64[src]

pub const METHOD_OPTIONS: i64[src]

pub const RESPONSE_USE_PROXY: i64[src]

pub const RESPONSE_INTERNAL_SERVER_ERROR: i64[src]

pub const METHOD_PATCH: i64[src]

pub const RESPONSE_MULTI_STATUS: i64[src]

pub const RESPONSE_METHOD_NOT_ALLOWED: i64[src]

pub const RESPONSE_NETWORK_AUTH_REQUIRED: i64[src]

pub const STATUS_CONNECTED: i64[src]

pub const RESPONSE_PAYMENT_REQUIRED: i64[src]

pub const METHOD_POST: i64[src]

pub const RESPONSE_BAD_GATEWAY: i64[src]

pub const RESPONSE_REQUEST_ENTITY_TOO_LARGE: i64[src]

pub const RESPONSE_CONTINUE: i64[src]

pub const RESPONSE_CONFLICT: i64[src]

pub const RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE: i64[src]

pub const RESPONSE_FORBIDDEN: i64[src]

pub const RESPONSE_REQUEST_URI_TOO_LONG: i64[src]

pub const RESPONSE_LOCKED: i64[src]

pub const RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE: i64[src]

pub const RESPONSE_SEE_OTHER: i64[src]

pub const METHOD_TRACE: i64[src]

pub const RESPONSE_CREATED: i64[src]

pub const METHOD_MAX: i64[src]

pub const RESPONSE_GONE: i64[src]

pub const RESPONSE_SWITCH_PROXY: i64[src]

pub const STATUS_CANT_RESOLVE: i64[src]

pub const RESPONSE_MISDIRECTED_REQUEST: i64[src]

pub const RESPONSE_MULTIPLE_CHOICES: i64[src]

pub const STATUS_CONNECTING: i64[src]

pub const RESPONSE_PARTIAL_CONTENT: i64[src]

pub const STATUS_DISCONNECTED: i64[src]

pub const STATUS_REQUESTING: i64[src]

pub const STATUS_CONNECTION_ERROR: i64[src]

pub const RESPONSE_NOT_MODIFIED: i64[src]

pub const STATUS_BODY: i64[src]

pub const RESPONSE_UNPROCESSABLE_ENTITY: i64[src]

pub const RESPONSE_PROCESSING: i64[src]

pub const RESPONSE_NOT_FOUND: i64[src]

pub const RESPONSE_UNAUTHORIZED: i64[src]

pub const STATUS_RESOLVING: i64[src]

pub const RESPONSE_NO_CONTENT: i64[src]

pub const RESPONSE_IM_A_TEAPOT: i64[src]

pub const RESPONSE_LOOP_DETECTED: i64[src]

pub const RESPONSE_PERMANENT_REDIRECT: i64[src]

pub const RESPONSE_BAD_REQUEST: i64[src]

pub const METHOD_HEAD: i64[src]

pub const RESPONSE_FOUND: i64[src]

impl HTTPClient[src]

pub fn new() -> HTTPClient[src]

pub fn new_ref(&self) -> HTTPClient[src]

Creates a new reference to the same reference-counted object.

pub fn close(&mut self)[src]

pub fn connect_to_host(
    &mut self,
    host: GodotString,
    port: i64,
    use_ssl: bool,
    verify_host: bool
) -> Result<(), GodotError>
[src]

pub fn get_connection(&self) -> Option<StreamPeer>[src]

pub fn get_read_chunk_size(&self) -> i64[src]

pub fn get_response_body_length(&self) -> i64[src]

pub fn get_response_code(&self) -> i64[src]

pub fn get_response_headers(&mut self) -> StringArray[src]

pub fn get_response_headers_as_dictionary(&mut self) -> Dictionary[src]

pub fn get_status(&self) -> HTTPClientStatus[src]

pub fn has_response(&self) -> bool[src]

pub fn is_blocking_mode_enabled(&self) -> bool[src]

pub fn is_response_chunked(&self) -> bool[src]

pub fn poll(&mut self) -> Result<(), GodotError>[src]

pub fn query_string_from_dict(&mut self, fields: Dictionary) -> GodotString[src]

pub fn read_response_body_chunk(&mut self) -> ByteArray[src]

pub fn request(
    &mut self,
    method: i64,
    url: GodotString,
    headers: StringArray,
    body: GodotString
) -> Result<(), GodotError>
[src]

pub fn request_raw(
    &mut self,
    method: i64,
    url: GodotString,
    headers: StringArray,
    body: ByteArray
) -> Result<(), GodotError>
[src]

pub fn set_blocking_mode(&mut self, enabled: bool)[src]

pub fn set_connection(&mut self, connection: Option<StreamPeer>)[src]

pub fn set_read_chunk_size(&mut self, bytes: i64)[src]

pub fn init_ref(&mut self) -> bool[src]

Inherited from Reference.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = Reference>

pub fn new_ref(&self) -> Reference[src]

Creates a new reference to the same reference-counted object.

pub fn init_ref(&mut self) -> bool[src]

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for HTTPClient[src]

impl Debug for HTTPClient[src]

impl Deref for HTTPClient[src]

type Target = Reference

The resulting type after dereferencing.

impl DerefMut for HTTPClient[src]

impl Drop for HTTPClient[src]

impl FromVariant for HTTPClient[src]

impl GodotObject for HTTPClient[src]

impl Instanciable for HTTPClient[src]

impl ToVariant for HTTPClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Export for T where
    T: GodotObject + ToVariant
[src]

type Hint = ()

A type-specific hint type that is valid for the type being exported.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.