mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update comment
This commit is contained in:
parent
2e7df281a9
commit
6c88eedd33
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ use gio::NetworkAddress;
|
||||||
use glib::{GString, Uri, UriFlags, UriHideFlags};
|
use glib::{GString, Uri, UriFlags, UriHideFlags};
|
||||||
|
|
||||||
/// Scope implement path prefix to apply TLS authorization for
|
/// Scope implement path prefix to apply TLS authorization for
|
||||||
/// * https://geminiprotocol.net/docs/protocol-specification.gmi#status-60
|
/// * external validator MAY decline `Certificate` if `Scope` defined out of protocol range
|
||||||
|
/// * [read more](https://geminiprotocol.net/docs/protocol-specification.gmi#status-60)
|
||||||
pub struct Scope {
|
pub struct Scope {
|
||||||
uri: Uri,
|
uri: Uri,
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +16,6 @@ impl Scope {
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
/// Create new `Self` for given `url`
|
/// Create new `Self` for given `url`
|
||||||
/// * external validator MAY decline `Certificate` if `Scope` defined out of protocol range
|
|
||||||
pub fn from_url(url: &str) -> Result<Self, Error> {
|
pub fn from_url(url: &str) -> Result<Self, Error> {
|
||||||
match Uri::parse(url, UriFlags::NONE) {
|
match Uri::parse(url, UriFlags::NONE) {
|
||||||
Ok(uri) => {
|
Ok(uri) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue