mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 06:44:15 +08:00
http server: change uri query handling
This commit is contained in:
@@ -21,11 +21,6 @@ namespace OSHttpServer
|
||||
/// </summary>
|
||||
Stream Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the body is complete.
|
||||
/// </summary>
|
||||
bool BodyIsComplete { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind of connection used for the session.
|
||||
/// </summary>
|
||||
@@ -84,28 +79,13 @@ namespace OSHttpServer
|
||||
/// <summary>
|
||||
/// Gets variables sent in the query string
|
||||
/// </summary>
|
||||
HttpInput QueryString { get; }
|
||||
NameValueCollection QueryString { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets requested URI.
|
||||
/// </summary>
|
||||
Uri Uri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets URI absolute path divided into parts.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
/// // URI is: http://gauffin.com/code/tiny/
|
||||
/// Console.WriteLine(request.UriParts[0]); // result: code
|
||||
/// Console.WriteLine(request.UriParts[1]); // result: tiny
|
||||
/// </example>
|
||||
/// <remarks>
|
||||
/// If you're using controllers than the first part is controller name,
|
||||
/// the second part is method name and the third part is Id property.
|
||||
/// </remarks>
|
||||
/// <seealso cref="Uri"/>
|
||||
string[] UriParts { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets path and query.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user