Struct docktape::Socket [−][src]
pub struct Socket { pub address: String, }
Socket
Fields
address: String
Socket address
Methods
impl Socket
[src]
impl Socket
pub fn new(address: &str) -> Self
[src]
pub fn new(address: &str) -> Self
Create new socket
pub fn address(&self) -> String
[src]
pub fn address(&self) -> String
Returns the Socket address
pub fn is_unix(&self) -> bool
[src]
pub fn is_unix(&self) -> bool
Returns if the Socket is a Unix one
pub fn request(
&mut self,
uri: Uri,
method: Method,
body: Option<Body>
) -> Option<Value>
[src]
pub fn request(
&mut self,
uri: Uri,
method: Method,
body: Option<Body>
) -> Option<Value>
Execute the request on the client