jsonrpc_quic/lib.rs
1// Copyright 2020 MaidSafe.net limited.
2//
3// This SAFE Network Software is licensed to you under the MIT license <LICENSE-MIT
4// http://opensource.org/licenses/MIT> or the Modified BSD license <LICENSE-BSD
5// https://opensource.org/licenses/BSD-3-Clause>, at your option. This file may not be copied,
6// modified, or distributed except according to those terms. Please review the Licences for the
7// specific language governing permissions and limitations relating to use of the SAFE Network
8// Software.
9
10mod client_endpoint;
11mod errors;
12mod jsonrpc;
13mod server_endpoint;
14mod utils;
15
16const ALPN_QUIC_HTTP: &[&[u8]] = &[b"hq-24"];
17
18pub use client_endpoint::ClientEndpoint;
19pub use errors::{Error, Result};
20pub use server_endpoint::{Endpoint, IncomingConn, IncomingJsonRpcRequest, JsonRpcResponseStream};
21
22pub use jsonrpc::{JsonRpcRequest, JsonRpcResponse};