Struct gdnative::HTTPClient
[−]
[src]
pub struct HTTPClient { /* fields omitted */ }
core class HTTPClient : Reference
(reference counted)
Base class
HTTPClient inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl HTTPClient
[src]
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn connect_to_host(
&mut self,
host: GodotString,
port: i64,
use_ssl: bool,
verify_host: bool
) -> GodotResult
[src]
&mut self,
host: GodotString,
port: i64,
use_ssl: bool,
verify_host: bool
) -> GodotResult
pub fn set_connection(&mut self, connection: Option<StreamPeer>)
[src]
pub fn get_connection(&self) -> Option<StreamPeer>
[src]
pub fn request_raw(
&mut self,
method: i64,
url: GodotString,
headers: StringArray,
body: ByteArray
) -> GodotResult
[src]
&mut self,
method: i64,
url: GodotString,
headers: StringArray,
body: ByteArray
) -> GodotResult
pub fn request(
&mut self,
method: i64,
url: GodotString,
headers: StringArray,
body: GodotString
) -> GodotResult
[src]
&mut self,
method: i64,
url: GodotString,
headers: StringArray,
body: GodotString
) -> GodotResult
pub fn close(&mut self)
[src]
pub fn has_response(&self) -> bool
[src]
pub fn is_response_chunked(&self) -> bool
[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_response_body_length(&self) -> i64
[src]
pub fn read_response_body_chunk(&mut self) -> ByteArray
[src]
pub fn set_read_chunk_size(&mut self, bytes: i64)
[src]
pub fn set_blocking_mode(&mut self, enabled: bool)
[src]
pub fn is_blocking_mode_enabled(&self) -> bool
[src]
pub fn poll(&mut self) -> GodotResult
[src]
pub fn query_string_from_dict(&mut self, fields: Dictionary) -> GodotString
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for HTTPClient
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for HTTPClient
[src]
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.