Function get_client

Source
pub async fn get_client(
    host: String,
    tls_options: Option<TlsOptions>,
) -> Result<NlpClient, Box<dyn Error>>
Expand description

Creates a new NlpClient to communicate with the server.

§Arguments

  • host - The host to connect to (might include the port number e.g. “https://nlp.example.com:8524”). Note that the protocol must be included in the host.
  • tls_options - The tls options to use when connecting to the server. If None is given, the connection will be unencrypted and unauthenticated (the server must also be configured to communicate without encryption in this case).