pub fn start_http(
	addr: &std::net::SocketAddr,
	io: RpcHandler,
) -> io::Result<http::Server> {
	http::ServerBuilder::new(io)
		.threads(4)
		.health_api(("/health", "system_health"))
		.rest_api(http::RestApi::Unsecure)
		.cors(http::DomainsValidation::Disabled)
		.max_request_body_size(MAX_PAYLOAD)
		.start_http(addr)
}
/// Start HTTP server listening on given address.
Start HTTP server listening on given address.
Start HTTP server listening on given address .
pub fn start_http(
	addr: &std::net::SocketAddr,
	io: RpcHandler,
) -> io::Result<http::Server> {
	http::ServerBuilder::new(io)
		.threads(4)
		.health_api(("/health", "system_health"))
		.rest_api(http::RestApi::Unsecure)
		.cors(http::DomainsValidation::Disabled)
		.max_request_body_size(MAX_PAYLOAD)
		.start_http(addr)
}
pub fn start_http ( addr : & std :: net :: SocketAddr , io : RpcHandler , ) -> io :: Result < http :: Server > { http :: ServerBuilder :: new ( io ) . threads ( 4 ) . health_api ( ( " " , " " ) ) . rest_api ( http :: RestApi :: Unsecure ) . cors ( http :: DomainsValidation :: Disabled ) . max_request_body_size ( MAX_PAYLOAD ) . start_http ( addr ) }
Start HTTP server listening on given address.
Start HTTP server listening on given address .
addr
&std::net::SocketAddr
io
RpcHandler
addr
&std::net::SocketAddr
io
RpcHandler