Crate surf_disco

Source
Expand description

Surf Disco: a client library for Tide Disco applications.

§Quick Start

let url = "http://localhost:50000".parse().unwrap();
let client: Client<ClientError, StaticVersion<0,1>> = Client::new(url);
let res: String = client.get("/app/route").send().await.unwrap();

Re-exports§

pub use client::Client;
pub use client::ContentType;
pub use request::Request;
pub use socket::SocketRequest;
pub use tide_disco::http;

Modules§

client
error
request
socket

Structs§

StatusCode
Serializable HTTP status code.
Url
A parsed URL record.

Enums§

Method
HTTP request methods.

Traits§

Error
Errors which can be serialized in a response body.

Functions§

connect
Connect to a server, retrying if the server is not running.
get
Build an HTTP GET request.
post
Build an HTTP POST request.