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§

Modules§

Structs§

  • A parsed URL record.

Enums§

Traits§

  • Errors which can be serialized in a response body.

Functions§

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