client::networkingFunction send_request
Source pub fn send_request(
stream: &mut TcpStream,
serialized_request: &str,
) -> Result<()>
Expand description
Send a request to the server.
§Arguments
stream
- A mutable reference to the TcpStream
to send the request to.
serialized_request
- A reference to the serialized request.
§Return
Result<(), io::Error>
- An io::Error
if the request could not be sent.