pub fn replace_protocol(address: &str) -> String
Expand description

Replaces occurrences of “ws://” and “wss://” in a given address with “http://” and “https://” respectively.

§Parameters

  • address: A &str representing the address to modify.

§Returns

A String representing the modified address.