- Hands-On Network Programming with C# and .NET Core
- Sean Burns
- 99字
- 2021-06-24 16:05:16
Authority specification
The authority, as we already specified, can be broken down as follows:
//[access_credentials][@]host_domain[:port]
So, if an authority component is present, it will always be prefixed with a (//) delimiter, and will always contain the host domain. Meanwhile, the access credentials component is also broken down as follows:
[user_id][:][password]
Here, only one component is required. However, if either component is present, then the (@) character separating access credentials from the host domain becomes a requirement. And, if both the user_id and the password functions are present, then the colon (:) delimiter between the two components will be required.