// Copyright © 2021 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public class UrlParts
{
///
/// The complete URL specification.
///
public string Spec { get; set; }
///
/// Scheme component not including the colon (e.g., "http").
///
public string Scheme { get; set; }
///
/// User name component.
///
public string Username { get; set; }
///
/// Password component.
///
public string Password { get; set; }
///
/// Host component. This may be a hostname, an IPv4 address or an IPv6 literal
/// surrounded by square brackets (e.g., "[2001:db8::1]").
///
public string Host { get; set; }
///
/// Port number component.
///
public int? Port { get; set; }
///
/// Origin contains just the scheme, host, and port from a URL. Equivalent to
/// clearing any username and password, replacing the path with a slash, and
/// clearing everything after that. This value will be empty for non-standard
/// URLs.
///
public string Origin { get; set; }
///
/// Path component including the first slash following the host.
///
public string Path { get; set; }
///
/// Query string component (i.e., everything following the '?').
///
public string Query { get; set; }
///
/// Fragment (hash) identifier component (i.e., the string following the '#').
///
public string Fragment { get; set; }
}
}