Added some XML documentation comments

This commit is contained in:
sta 2013-03-11 16:28:34 +09:00
parent 189a1fca3e
commit eeafa4ff8c
51 changed files with 3975 additions and 772 deletions

Binary file not shown.

View File

@ -105,7 +105,7 @@ namespace WebSocketSharp {
#endregion
#region Private Method
#region Private Methods
private ushort getCodeFrom(PayloadData data)
{

View File

@ -55,6 +55,12 @@ namespace WebSocketSharp {
/// </summary>
public static class Ext {
#region Field
private const string _tspecials = "()<>@,;:\\\"/[]?={} \t";
#endregion
#region Private Methods
private static void times(this ulong n, Action act)
@ -71,6 +77,21 @@ namespace WebSocketSharp {
#endregion
#region Internal Method
internal static bool IsToken(this string value)
{
foreach (char c in value)
{
if (c < 0x20 || c >= 0x7f || _tspecials.Contains (c))
return false;
}
return true;
}
#endregion
#region Public Methods
/// <summary>
@ -127,6 +148,28 @@ namespace WebSocketSharp {
listener.BeginAcceptTcpClient(callback, null);
}
/// <summary>
/// Determines whether the specified <see cref="string"/> contains any of characters
/// in the specified array of <see cref="char"/>.
/// </summary>
/// <returns>
/// <c>true</c> if <paramref name="str"/> contains any of <paramref name="chars"/>; otherwise, <c>false</c>.
/// </returns>
/// <param name="str">
/// A <see cref="string"/> to test.
/// </param>
/// <param name="chars">
/// An array of <see cref="char"/> that contains characters to find.
/// </param>
public static bool Contains(this string str, params char[] chars)
{
return str.IsNullOrEmpty()
? false
: chars.Length == 0
? true
: str.IndexOfAny(chars) != -1;
}
/// <summary>
/// Emit the specified <see cref="EventHandler"/> delegate if is not <see langword="null"/>.
/// </summary>
@ -432,7 +475,7 @@ namespace WebSocketSharp {
/// Determines whether the specified <see cref="string"/> is a <see cref="String.Empty"/>.
/// </summary>
/// <returns>
/// <c>true</c> if the <paramref name="value"/> parameter is a <see cref="String.Empty"/>; otherwise, <c>false</c>.
/// <c>true</c> if <paramref name="value"/> is <see cref="String.Empty"/>; otherwise, <c>false</c>.
/// </returns>
/// <param name="value">
/// A <see cref="string"/> to test.
@ -442,6 +485,25 @@ namespace WebSocketSharp {
return value == String.Empty ? true : false;
}
/// <summary>
/// Determines whether the specified <see cref="string"/> is enclosed in the specified <see cref="char"/>.
/// </summary>
/// <returns>
/// <c>true</c> if <paramref name="str"/> is enclosed in <paramref name="c"/>; otherwise, <c>false</c>.
/// </returns>
/// <param name="str">
/// A <see cref="string"/> to test.
/// </param>
/// <param name="c">
/// A <see cref="char"/> that contains character to find.
/// </param>
public static bool IsEnclosedIn(this string str, char c)
{
return str.IsNullOrEmpty()
? false
: str[0] == c && str[str.Length - 1] == c;
}
/// <summary>
/// Determines whether the specified <see cref="WebSocketSharp.ByteOrder"/> is host (this computer architecture) byte order.
/// </summary>

View File

@ -64,7 +64,7 @@ namespace WebSocketSharp {
/// Gets the received data as a <see cref="string"/>.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains a received data.
/// A <see cref="string"/> that contains the received data.
/// </value>
public string Data {
get {
@ -80,7 +80,7 @@ namespace WebSocketSharp {
/// Gets the received data as an array of <see cref="byte"/>.
/// </summary>
/// <value>
/// An array of <see cref="byte"/> that contains a received data.
/// An array of <see cref="byte"/> that contains the received data.
/// </value>
public byte[] RawData {
get {
@ -89,10 +89,10 @@ namespace WebSocketSharp {
}
/// <summary>
/// Gets the type of received data.
/// Gets the type of the received data.
/// </summary>
/// <value>
/// One of the <see cref="WebSocketSharp.Frame.Opcode"/> that indicates the type of received data.
/// One of the <see cref="Opcode"/> values that indicates the type of the received data.
/// </value>
public Opcode Type {
get {

View File

@ -8,7 +8,8 @@
// Daniel Nauck (dna@mono-project.de)
// Sebastien Pouliot (sebastien@ximian.com)
//
// Copyright (C) 2004,2009 Novell, Inc (http://www.novell.com)
// Copyright (c) 2004,2009 Novell, Inc (http://www.novell.com)
// Copyright (c) 2012-2013 sta.blockhead (sta.blockhead@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@ -34,66 +35,200 @@ using System;
using System.Text;
using System.Globalization;
using System.Collections;
using System.Net;
namespace WebSocketSharp.Net {
// Supported cookie formats are:
// Netscape: http://home.netscape.com/newsref/std/cookie_spec.html
// RFC 2109: http://www.ietf.org/rfc/rfc2109.txt
// RFC 2965: http://www.ietf.org/rfc/rfc2965.txt
/// <summary>
/// Provides a set of properties and methods to use to manage the HTTP Cookie.
/// </summary>
/// <remarks>
/// The Cookie class cannot be inherited.
/// </remarks>
[Serializable]
public sealed class Cookie
{
#region Fields
// Supported cookie formats are:
// Netscape: http://home.netscape.com/newsref/std/cookie_spec.html
// RFC 2109: http://www.ietf.org/rfc/rfc2109.txt
// RFC 2965: http://www.ietf.org/rfc/rfc2965.txt
static char [] reservedCharsName = new char [] {' ', '=', ';', ',', '\n', '\r', '\t'};
static char [] portSeparators = new char [] {'"', ','};
static string tspecials = "()<>@,;:\\\"/[]?={} \t"; // from RFC 2965, 2068
#region Static Private Fields
string comment;
Uri commentUri;
bool discard;
string domain;
static char [] reservedCharsForName = new char [] {' ', '=', ';', ',', '\n', '\r', '\t'};
static char [] reservedCharsForValue = new char [] {';', ','};
#endregion
#region Private Fields
string comment;
Uri commentUri;
bool discard;
string domain;
DateTime expires;
bool httpOnly;
string name;
string path;
string port;
int [] ports;
bool secure;
bool httpOnly;
string name;
string path;
string port;
int [] ports;
bool secure;
DateTime timestamp;
string val;
int version;
string val;
int version;
#endregion
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="Cookie"/> class.
/// </summary>
public Cookie ()
{
expires = DateTime.MinValue;
timestamp = DateTime.Now;
domain = String.Empty;
name = String.Empty;
val = String.Empty;
comment = String.Empty;
domain = String.Empty;
expires = DateTime.MinValue;
name = String.Empty;
path = String.Empty;
port = String.Empty;
ports = new int [] {};
timestamp = DateTime.Now;
val = String.Empty;
version = 0;
}
/// <summary>
/// Initializes a new instance of the <see cref="Cookie"/> class
/// with the specified <paramref name="name"/> and <paramref name="value"/>.
/// </summary>
/// <param name="name">
/// A <see cref="string"/> that contains the Name of the cookie.
/// </param>
/// <param name="value">
/// A <see cref="string"/> that contains the Value of the cookie.
/// </param>
/// <exception cref="CookieException">
/// <para>
/// <paramref name="name"/> is <see langword="null"/> or <see cref="String.Empty"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="name"/> contains an invalid character.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="value"/> is <see langword="null"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="value"/> contains a string not enclosed in double quotes
/// that contains an invalid character.
/// </para>
/// </exception>
public Cookie (string name, string value)
: this ()
{
Name = name;
Value = value;
string msg;
if (!CanSetName (name, out msg))
throw new CookieException (msg);
if (!CanSetValue (value, out msg))
throw new CookieException (msg);
this.name = name;
this.val = value;
}
/// <summary>
/// Initializes a new instance of the <see cref="Cookie"/> class
/// with the specified <paramref name="name"/>, <paramref name="value"/> and <paramref name="path"/>.
/// </summary>
/// <param name="name">
/// A <see cref="string"/> that contains the Name of the cookie.
/// </param>
/// <param name="value">
/// A <see cref="string"/> that contains the Value of the cookie.
/// </param>
/// <param name="path">
/// A <see cref="string"/> that contains the value of the Path attribute of the cookie.
/// </param>
/// <exception cref="CookieException">
/// <para>
/// <paramref name="name"/> is <see langword="null"/> or <see cref="String.Empty"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="name"/> contains an invalid character.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="value"/> is <see langword="null"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="value"/> contains a string not enclosed in double quotes
/// that contains an invalid character.
/// </para>
/// </exception>
public Cookie (string name, string value, string path)
: this (name, value)
{
Path = path;
}
/// <summary>
/// Initializes a new instance of the <see cref="Cookie"/> class
/// with the specified <paramref name="name"/>, <paramref name="value"/>,
/// <paramref name="path"/> and <paramref name="domain"/>.
/// </summary>
/// <param name="name">
/// A <see cref="string"/> that contains the Name of the cookie.
/// </param>
/// <param name="value">
/// A <see cref="string"/> that contains the Value of the cookie.
/// </param>
/// <param name="path">
/// A <see cref="string"/> that contains the value of the Path attribute of the cookie.
/// </param>
/// <param name="domain">
/// A <see cref="string"/> that contains the value of the Domain attribute of the cookie.
/// </param>
/// <exception cref="CookieException">
/// <para>
/// <paramref name="name"/> is <see langword="null"/> or <see cref="String.Empty"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="name"/> contains an invalid character.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="value"/> is <see langword="null"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// <paramref name="value"/> contains a string not enclosed in double quotes
/// that contains an invalid character.
/// </para>
/// </exception>
public Cookie (string name, string value, string path, string domain)
: this (name, value, path)
{
@ -114,34 +249,67 @@ namespace WebSocketSharp.Net {
#region Public Properties
/// <summary>
/// Gets or sets the value of the Comment attribute of the cookie.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains a comment to document intended use of the cookie.
/// </value>
public string Comment {
get { return comment; }
set { comment = value == null ? String.Empty : value; }
set { comment = value.IsNull () ? String.Empty : value; }
}
/// <summary>
/// Gets or sets the value of the CommentURL attribute of the cookie.
/// </summary>
/// <value>
/// A <see cref="Uri"/> that contains a URI that provides the comment
/// to document intended use of the cookie.
/// </value>
public Uri CommentUri {
get { return commentUri; }
set { commentUri = value; }
}
/// <summary>
/// Gets or sets a value indicating whether the client discards the cookie unconditionally
/// when the client terminates.
/// </summary>
/// <value>
/// <c>true</c> if the client discards the cookie unconditionally when the client terminates;
/// otherwise, <c>false</c>. The default is <c>false</c>.
/// </value>
public bool Discard {
get { return discard; }
set { discard = value; }
}
/// <summary>
/// Gets or sets the value of the Domain attribute of the cookie.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains a URI for which the cookie is valid.
/// </value>
public string Domain {
get { return domain; }
set {
if (String.IsNullOrEmpty (value)) {
if (value.IsNullOrEmpty ()) {
domain = String.Empty;
ExactDomain = true;
} else {
domain = value;
ExactDomain = (value [0] != '.');
ExactDomain = value [0] != '.';
}
}
}
/// <summary>
/// Gets or sets a value indicating whether the cookie has expired.
/// </summary>
/// <value>
/// <c>true</c> if the cookie has expired; otherwise, <c>false</c>.
/// </value>
public bool Expired {
get {
return expires <= DateTime.Now &&
@ -153,74 +321,129 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets or sets the value of the Expires attribute of the cookie.
/// </summary>
/// <value>
/// A <see cref="DateTime"/> that contains the date and time at which the cookie expires.
/// </value>
public DateTime Expires {
get { return expires; }
set { expires = value; }
}
/// <summary>
/// Gets or sets a value indicating non-HTTP APIs can access the cookie.
/// </summary>
/// <value>
/// <c>true</c> if non-HTTP APIs can not access the cookie; otherwise, <c>false</c>.
/// </value>
public bool HttpOnly {
get { return httpOnly; }
set { httpOnly = value; }
}
/// <summary>
/// Gets or sets the Name of the cookie.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains the Name of the cookie.
/// </value>
/// <exception cref="CookieException">
/// <para>
/// The value specified for a set operation is <see langword="null"/> or <see cref="String.Empty"/>.
/// </para>
/// <para>
/// - or -
/// </para>
/// <para>
/// The value specified for a set operation contains an invalid character.
/// </para>
/// </exception>
public string Name {
get { return name; }
set {
if (String.IsNullOrEmpty (value))
throw new CookieException ("Name cannot be empty");
if (value [0] == '$' || value.IndexOfAny (reservedCharsName) != -1) {
// see CookieTest, according to MS implementation
// the name value changes even though it's incorrect
name = String.Empty;
throw new CookieException ("Name contains invalid characters");
}
set {
string msg;
if (!CanSetName (value, out msg))
throw new CookieException (msg);
name = value;
name = value;
}
}
/// <summary>
/// Gets or sets the value of the Path attribute of the cookie.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains a subset of URI on the origin server
/// to which the cookie applies.
/// </value>
public string Path {
get { return (path == null) ? String.Empty : path; }
set { path = (value == null) ? String.Empty : value; }
get { return path; }
set { path = value.IsNull () ? String.Empty : value; }
}
/// <summary>
/// Gets or sets the value of the Port attribute of the cookie.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains a list of the TCP ports to which the cookie applies.
/// </value>
/// <exception cref="CookieException">
/// The value specified for a set operation could not be parsed or is not enclosed in double quotes.
/// </exception>
public string Port {
get { return port; }
set {
if (String.IsNullOrEmpty (value)) {
if (value.IsNullOrEmpty ()) {
port = String.Empty;
ports = new int [] {};
return;
}
if (value [0] != '"' || value [value.Length - 1] != '"') {
throw new CookieException("The 'Port'='" + value + "' part of the cookie is invalid. Port must be enclosed by double quotes.");
}
port = value;
string [] values = port.Split (portSeparators);
ports = new int[values.Length];
for (int i = 0; i < ports.Length; i++) {
ports [i] = Int32.MinValue;
if (values [i].Length == 0)
continue;
try {
ports [i] = Int32.Parse (values [i]);
} catch (Exception e) {
throw new CookieException("The 'Port'='" + value + "' part of the cookie is invalid. Invalid value: " + values [i], e);
}
}
Version = 1;
if (!value.IsEnclosedIn ('"'))
throw new CookieException ("The 'Port'='" + value + "' attribute of the cookie is invalid. Port must be enclosed in double quotes.");
string error;
if (!TryCreatePorts (value, out ports, out error))
throw new CookieException ("The 'Port'='" + value + "' attribute of the cookie is invalid. Invalid value: " + error);
port = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether the security level of the cookie is secure.
/// </summary>
/// <remarks>
/// When this property is <c>true</c>, the cookie may be included in the HTTP request
/// only if the request is transmitted over the HTTPS.
/// </remarks>
/// <value>
/// <c>true</c> if the security level of the cookie is secure; otherwise, <c>false</c>.
/// The default is <c>false</c>.
/// </value>
public bool Secure {
get { return secure; }
set { secure = value; }
}
/// <summary>
/// Gets the time when the cookie was issued.
/// </summary>
/// <value>
/// A <see cref="DateTime"/> that contains the time when the cookie was issued.
/// </value>
public DateTime TimeStamp {
get { return timestamp; }
}
/// <summary>
/// Gets or sets the Value of the cookie.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains the Value of the cookie.
/// </value>
public string Value {
get { return val; }
set {
@ -233,7 +456,7 @@ namespace WebSocketSharp.Net {
// the semicolon and comma characters, yet it does. For now we'll follow
// the behaviour of MS.Net instead of the specs.
/*
if (value.IndexOfAny(reservedCharsValue) != -1)
if (value.IndexOfAny(reservedCharsForValue) != -1)
throw new CookieException("Invalid value. Value cannot contain semicolon or comma characters.");
*/
@ -241,12 +464,22 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets or sets the value of the Version attribute of the cookie.
/// </summary>
/// <value>
/// An <see cref="int"/> that contains the version of the HTTP state management
/// to which the cookie conforms.
/// </value>
/// <exception cref="ArgumentOutOfRangeException">
/// The value specified for a set operation is less than zero.
/// </exception>
public int Version {
get { return version; }
set {
if ((value < 0) || (value > 10))
version = 0;
else
if (value < 0)
throw new ArgumentOutOfRangeException();
else
version = value;
}
}
@ -255,85 +488,130 @@ namespace WebSocketSharp.Net {
#region Private Methods
private static int hash (int i, int j, int k, int l, int m)
static bool CanSetName (string name, out string message)
{
if (name.IsNullOrEmpty ()) {
message = "Name can not be null or empty.";
return false;
}
if (name [0] == '$' || name.Contains (reservedCharsForName)) {
message = "Name contains an invalid character.";
return false;
}
message = String.Empty;
return true;
}
static bool CanSetValue (string value, out string message)
{
if (value.IsNull ()) {
message = "Value can not be null.";
return false;
}
if (value.Contains (reservedCharsForValue)) {
if (!value.IsEnclosedIn ('"')) {
message = "Value contains an invalid character.";
return false;
}
}
message = String.Empty;
return true;
}
static int Hash (int i, int j, int k, int l, int m)
{
return i ^ (j << 13 | j >> 19) ^ (k << 26 | k >> 6) ^ (l << 7 | l >> 25) ^ (m << 20 | m >> 12);
}
bool IsToken (string value)
{
int len = value.Length;
for (int i = 0; i < len; i++) {
char c = value [i];
if (c < 0x20 || c >= 0x7f || tspecials.IndexOf (c) != -1)
return false;
}
return true;
}
// See par 3.6 of RFC 2616
string QuotedString (string value)
string Quote (string value)
{
if (version == 0 || IsToken (value))
if (version == 0 || value.IsToken ())
return value;
else
return "\"" + value.Replace("\"", "\\\"") + "\"";
}
static bool TryCreatePorts (string value, out int [] result, out string parseError)
{
var values = value.Trim ('"').Split (',');
var tmp = new int [values.Length];
for (int i = 0; i < values.Length; i++) {
tmp [i] = int.MinValue;
var v = values [i].Trim ();
if (v.IsEmpty ())
continue;
if (!int.TryParse (v, out tmp [i])) {
result = new int [] {};
parseError = v;
return false;
}
}
result = tmp;
parseError = String.Empty;
return true;
}
#endregion
#region Internal Methods
// From server to client
internal string ToClientString ()
{
if (name.Length == 0)
if (name.IsEmpty ())
return String.Empty;
StringBuilder result = new StringBuilder (64);
var result = new StringBuilder (64);
if (version > 0)
result.Append ("Version=").Append (version).Append (";");
result.Append ("Version=").Append (version).Append ("; ");
result.Append (name).Append ("=").Append (val);
result.Append (name).Append ("=").Append (Quote (val));
if (!path.IsNullOrEmpty ())
result.Append ("; Path=").Append (path);
if (path != null && path.Length != 0)
result.Append (";Path=").Append (QuotedString (path));
if (!domain.IsNullOrEmpty ())
result.Append ("; Domain=").Append (domain);
if (domain != null && domain.Length != 0)
result.Append (";Domain=").Append (QuotedString (domain));
if (port != null && port.Length != 0)
result.Append (";Port=").Append (port);
if (!port.IsNullOrEmpty ())
result.Append ("; Port=").Append (port);
return result.ToString ();
}
// From client to server
internal string ToString (Uri uri)
{
if (name.Length == 0)
if (name.IsEmpty ())
return String.Empty;
StringBuilder result = new StringBuilder (64);
var result = new StringBuilder (64);
if (version > 0)
result.Append ("$Version=").Append (version).Append ("; ");
result.Append ("$Version=").Append (version).Append ("; ");
result.Append (name).Append ("=").Append (val);
if (version == 0)
return result.ToString ();
if (!String.IsNullOrEmpty (path))
if (!path.IsNullOrEmpty ())
result.Append ("; $Path=").Append (path);
else if (uri != null)
result.Append ("; $Path=/").Append (path);
else if (!uri.IsNull ())
result.Append ("; $Path=").Append (uri.GetAbsolutePath ());
else
result.Append ("; $Path=/");
bool append_domain = (uri == null) || (uri.Host != domain);
if (append_domain && !String.IsNullOrEmpty (domain))
result.Append ("; $Domain=").Append (domain);
bool append_domain = uri.IsNull () || uri.Host != domain;
if (append_domain && !domain.IsNullOrEmpty ())
result.Append ("; $Domain=").Append (domain);
if (port != null && port.Length != 0)
result.Append ("; $Port=").Append (port);
if (!port.IsNullOrEmpty ())
result.Append ("; $Port=").Append (port);
return result.ToString ();
}
@ -342,34 +620,57 @@ namespace WebSocketSharp.Net {
#region Public Methods
public override bool Equals (Object obj)
/// <summary>
/// Determines whether the specified <see cref="Object"/> is equal to the current <see cref="Cookie"/>.
/// </summary>
/// <param name="comparand">
/// An <see cref="Object"/> to compare with the current <see cref="Cookie"/>.
/// </param>
/// <returns>
/// <c>true</c> if the specified <see cref="Object"/> is equal to the current <see cref="Cookie"/>;
/// otherwise, <c>false</c>.
/// </returns>
public override bool Equals (Object comparand)
{
Cookie c = obj as Cookie;
return c != null &&
String.Compare (this.name, c.Name, true, CultureInfo.InvariantCulture) == 0 &&
String.Compare (this.val, c.Value, false, CultureInfo.InvariantCulture) == 0 &&
String.Compare (this.Path, c.Path, false, CultureInfo.InvariantCulture) == 0 &&
String.Compare (this.domain, c.Domain, true, CultureInfo.InvariantCulture) == 0 &&
this.version == c.Version;
var cookie = comparand as Cookie;
return !cookie.IsNull() &&
String.Compare (this.name, cookie.Name, true, CultureInfo.InvariantCulture) == 0 &&
String.Compare (this.val, cookie.Value, false, CultureInfo.InvariantCulture) == 0 &&
String.Compare (this.path, cookie.Path, false, CultureInfo.InvariantCulture) == 0 &&
String.Compare (this.domain, cookie.Domain, true, CultureInfo.InvariantCulture) == 0 &&
this.version == cookie.Version;
}
/// <summary>
/// Serves as a hash function for a <see cref="Cookie"/> object.
/// </summary>
/// <returns>
/// An <see cref="int"/> that contains a hash code for this instance.
/// </returns>
public override int GetHashCode ()
{
return hash (
return Hash (
StringComparer.InvariantCultureIgnoreCase.GetHashCode (name),
val.GetHashCode (),
Path.GetHashCode (),
path.GetHashCode (),
StringComparer.InvariantCultureIgnoreCase.GetHashCode (domain),
version);
}
// returns a string that can be used to send a cookie to an Origin Server
// i.e., only used for clients
// see para 4.2.2 of RFC 2109 and para 3.3.4 of RFC 2965
// see also bug #316017
public override string ToString ()
/// <summary>
/// Returns a <see cref="string"/> that represents the current <see cref="Cookie"/>.
/// </summary>
/// <remarks>
/// This method returns a <see cref="string"/> to use to send an HTTP Cookie to an origin server.
/// </remarks>
/// <returns>
/// A <see cref="string"/> that represents the current <see cref="Cookie"/>.
/// </returns>
public override string ToString ()
{
// i.e., only used for clients
// see para 4.2.2 of RFC 2109 and para 3.3.4 of RFC 2965
// see also bug #316017
return ToString (null);
}

View File

@ -7,7 +7,8 @@
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
// Sebastien Pouliot <sebastien@ximian.com>
//
// Copyright (C) 2004,2009 Novell, Inc (http://www.novell.com)
// Copyright (c) 2004,2009 Novell, Inc (http://www.novell.com)
// Copyright (c) 2012-2013 sta.blockhead (sta.blockhead@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@ -33,11 +34,13 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
using System.Runtime.Serialization;
namespace WebSocketSharp.Net {
/// <summary>
/// Provides a collection container for instances of the <see cref="Cookie"/> class.
/// </summary>
[Serializable]
public class CookieCollection : ICollection, IEnumerable
{
@ -48,7 +51,7 @@ namespace WebSocketSharp.Net {
{
if (x == null || y == null)
return 0;
int c1 = x.Name.Length + x.Value.Length;
int c2 = y.Name.Length + y.Value.Length;
@ -56,10 +59,28 @@ namespace WebSocketSharp.Net {
}
}
#region Fields
#region Static Field
static CookieCollectionComparer Comparer = new CookieCollectionComparer ();
List<Cookie> list = new List<Cookie> ();
#endregion
#region Field
List<Cookie> list;
object sync;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="CookieCollection"/> class.
/// </summary>
public CookieCollection ()
{
list = new List<Cookie> ();
}
#endregion
@ -73,7 +94,12 @@ namespace WebSocketSharp.Net {
#region Public Properties
// ICollection
/// <summary>
/// Gets the number of cookies contained in the <see cref="CookieCollection"/>.
/// </summary>
/// <value>
/// An <see cref="int"/> that indicates the number of cookies contained in the <see cref="CookieCollection"/>.
/// </value>
public int Count {
get { return list.Count; }
}
@ -81,14 +107,42 @@ namespace WebSocketSharp.Net {
// LAMESPEC: So how is one supposed to create a writable CookieCollection
// instance?? We simply ignore this property, as this collection is always
// writable.
//
/// <summary>
/// Gets a value indicating whether the <see cref="CookieCollection"/> is read-only.
/// </summary>
/// <value>
/// <c>true</c> if the <see cref="CookieCollection"/> is read-only; otherwise, <c>false</c>.
/// The default is <c>true</c>.
/// </value>
public bool IsReadOnly {
get { return true; }
}
/// <summary>
/// Gets a value indicating whether access to the <see cref="CookieCollection"/> is thread safe.
/// </summary>
/// <value>
/// <c>true</c> if access to the <see cref="CookieCollection"/> is thread safe; otherwise, <c>false</c>.
/// The default is <c>false</c>.
/// </value>
public bool IsSynchronized {
get { return false; }
}
/// <summary>
/// Gets the <see cref="Cookie"/> with the specified <paramref name="index"/> from the <see cref="CookieCollection"/>.
/// </summary>
/// <value>
/// A <see cref="Cookie"/> with the specified <paramref name="index"/> in the <see cref="CookieCollection"/>.
/// </value>
/// <param name="index">
/// An <see cref="int"/> that is the zero-based index of the <see cref="Cookie"/> to find.
/// </param>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="index"/> is less than zero or <paramref name="index"/> is greater than or
/// equal to <see cref="Count"/>.
/// </exception>
public Cookie this [int index] {
get {
if (index < 0 || index >= list.Count)
@ -98,18 +152,45 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets the <see cref="Cookie"/> with the specified <paramref name="name"/> from the <see cref="CookieCollection"/>.
/// </summary>
/// <value>
/// A <see cref="Cookie"/> with the specified <paramref name="name"/> in the <see cref="CookieCollection"/>.
/// </value>
/// <param name="name">
/// A <see cref="string"/> that is the name of the <see cref="Cookie"/> to find.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="name"/> is <see langword="null"/>.
/// </exception>
public Cookie this [string name] {
get {
foreach (Cookie c in list) {
if (0 == String.Compare (c.Name, name, true, CultureInfo.InvariantCulture))
return c;
if (name.IsNull ())
throw new ArgumentNullException ("name");
foreach (var cookie in list) {
if (0 == String.Compare (cookie.Name, name, true, CultureInfo.InvariantCulture))
return cookie;
}
return null;
}
}
/// <summary>
/// Gets an object to use to synchronize access to the <see cref="CookieCollection"/>.
/// </summary>
/// <value>
/// An <see cref="Object"/> to use to synchronize access to the <see cref="CookieCollection"/>.
/// </value>
public Object SyncRoot {
get { return this; }
get {
if (sync.IsNull ())
sync = new object ();
return sync;
}
}
#endregion
@ -124,16 +205,16 @@ namespace WebSocketSharp.Net {
for (int i = list.Count - 1; i >= 0; i--) {
Cookie c = list [i];
if (c.Version != cookie.Version)
if (0 != String.Compare (name, c.Name, true, CultureInfo.InvariantCulture))
continue;
if (0 != String.Compare (domain, c.Domain, true, CultureInfo.InvariantCulture))
continue;
if (0 != String.Compare (name, c.Name, true, CultureInfo.InvariantCulture))
if (0 != String.Compare (path, c.Path, false, CultureInfo.InvariantCulture))
continue;
if (0 != String.Compare (path, c.Path, true, CultureInfo.InvariantCulture))
if (c.Version != cookie.Version)
continue;
return i;
@ -156,9 +237,18 @@ namespace WebSocketSharp.Net {
#region Public Methods
/// <summary>
/// Add the specified <see cref="Cookie"/> to the <see cref="CookieCollection"/>.
/// </summary>
/// <param name="cookie">
/// A <see cref="Cookie"/> to add to the <see cref="CookieCollection"/>.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="cookie"/> is <see langword="null"/>.
/// </exception>
public void Add (Cookie cookie)
{
if (cookie == null)
if (cookie.IsNull ())
throw new ArgumentNullException ("cookie");
int pos = SearchCookie (cookie);
@ -168,25 +258,89 @@ namespace WebSocketSharp.Net {
list [pos] = cookie;
}
/// <summary>
/// Add the elements of the specified <see cref="CookieCollection"/> to the current <see cref="CookieCollection"/>.
/// </summary>
/// <param name="cookies">
/// A <see cref="CookieCollection"/> to add to the current <see cref="CookieCollection"/>.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="cookies"/> is <see langword="null"/>.
/// </exception>
public void Add (CookieCollection cookies)
{
if (cookies == null)
if (cookies.IsNull ())
throw new ArgumentNullException ("cookies");
foreach (Cookie c in cookies)
Add (c);
foreach (Cookie cookie in cookies)
Add (cookie);
}
/// <summary>
/// Copies the elements of the <see cref="CookieCollection"/> to the specified <see cref="Array"/>,
/// starting at the specified <paramref name="index"/> in the <paramref name="array"/>.
/// </summary>
/// <param name="array">
/// An <see cref="Array"/> that is the destination of the elements copied from the <see cref="CookieCollection"/>.
/// </param>
/// <param name="index">
/// An <see cref="int"/> that indicates the zero-based index in <paramref name="array"/> at which copying begins.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="array"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="index"/> is less than zero.
/// </exception>
public void CopyTo (Array array, int index)
{
if (array.IsNull ())
throw new ArgumentNullException ("array");
if (index < 0)
throw new ArgumentOutOfRangeException ("index", "Must not be less than zero.");
// TODO: Support for ArgumentException and InvalidCastException.
(list as IList).CopyTo (array, index);
}
/// <summary>
/// Copies the elements of the <see cref="CookieCollection"/> to the specified array of <see cref="Cookie"/>,
/// starting at the specified <paramref name="index"/> in the <paramref name="array"/>.
/// </summary>
/// <param name="array">
/// An array of <see cref="Cookie"/> that is the destination of the elements copied from the <see cref="CookieCollection"/>.
/// </param>
/// <param name="index">
/// An <see cref="int"/> that indicates the zero-based index in <paramref name="array"/> at which copying begins.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="array"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <paramref name="index"/> is less than zero.
/// </exception>
public void CopyTo (Cookie [] array, int index)
{
if (array.IsNull ())
throw new ArgumentNullException ("array");
if (index < 0)
throw new ArgumentOutOfRangeException ("index", "Must not be less than zero.");
// TODO: Support for ArgumentException.
list.CopyTo (array, index);
}
/// <summary>
/// Gets the enumerator to use to iterate through the <see cref="CookieCollection"/>.
/// </summary>
/// <returns>
/// An instance of an implementation of the <see cref="IEnumerator"/> interface
/// to use to iterate through the <see cref="CookieCollection"/>.
/// </returns>
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();

View File

@ -1,10 +1,12 @@
//
// CookieException.cs
// Copied from System.Net.CookieException
// Copied from System.Net.CookieException.cs
//
// Author:
// Lawrence Pit (loz@cable.a2000.nl)
//
// Copyright (c) 2012-2013 sta.blockhead (sta.blockhead@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
@ -28,42 +30,97 @@
using System;
using System.Globalization;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace WebSocketSharp.Net {
/// <summary>
/// The exception that is thrown when a <see cref="Cookie"/> gets an error.
/// </summary>
[Serializable]
public class CookieException : FormatException, ISerializable
{
// Constructors
#region Internal Constructors
internal CookieException (string message)
: base (message)
{
}
internal CookieException (string message, Exception innerException)
: base (message, innerException)
{
}
#endregion
#region Protected Constructor
/// <summary>
/// Initializes a new instance of the <see cref="CookieException"/> class
/// with the specified <see cref="SerializationInfo"/> and <see cref="StreamingContext"/>.
/// </summary>
/// <param name="serializationInfo">
/// A <see cref="SerializationInfo"/> that holds the serialized object data.
/// </param>
/// <param name="streamingContext">
/// A <see cref="StreamingContext"/> that contains the contextual information about the source or destination.
/// </param>
protected CookieException (SerializationInfo serializationInfo, StreamingContext streamingContext)
: base (serializationInfo, streamingContext)
{
}
#endregion
#region Public Constructor
/// <summary>
/// Initializes a new instance of the <see cref="CookieException"/> class.
/// </summary>
public CookieException ()
: base ()
{
}
internal CookieException (string msg)
: base (msg)
#endregion
#region Explicit Interface Implementation
/// <summary>
/// Populates the specified <see cref="SerializationInfo"/> with the data needed to serialize the <see cref="CookieException"/>.
/// </summary>
/// <param name="serializationInfo">
/// A <see cref="SerializationInfo"/> that holds the serialized object data.
/// </param>
/// <param name="streamingContext">
/// A <see cref="StreamingContext"/> that specifies the destination for the serialization.
/// </param>
[SecurityPermission (SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter, SerializationFormatter = true)]
void ISerializable.GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext)
{
base.GetObjectData (serializationInfo, streamingContext);
}
internal CookieException (string msg, Exception e)
: base (msg, e)
{
}
#endregion
protected CookieException (SerializationInfo info, StreamingContext context)
: base (info, context)
{
}
// Methods
void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
{
base.GetObjectData (info, context);
}
#region Public Method
/// <summary>
/// Populates the specified <see cref="SerializationInfo"/> with the data needed to serialize the <see cref="CookieException"/>.
/// </summary>
/// <param name="serializationInfo">
/// A <see cref="SerializationInfo"/> that holds the serialized object data.
/// </param>
/// <param name="streamingContext">
/// A <see cref="StreamingContext"/> that specifies the destination for the serialization.
/// </param>
[SecurityPermission (SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext)
{
base.GetObjectData (serializationInfo, streamingContext);
}
#endregion
}
}

View File

@ -40,7 +40,7 @@ using System.Text;
namespace WebSocketSharp.Net {
/// <summary>
/// Provides access to the HTTP request objects sent to a <see cref="HttpListener"/> instance.
/// Provides access to a request to a <see cref="HttpListener"/> instance.
/// </summary>
/// <remarks>
/// The HttpListenerRequest class cannot be inherited.
@ -84,8 +84,8 @@ namespace WebSocketSharp.Net {
internal HttpListenerRequest (HttpListenerContext context)
{
this.context = context;
headers = new WebHeaderCollection ();
version = HttpVersion.Version10;
headers = new WebHeaderCollection ();
version = HttpVersion.Version10;
}
#endregion
@ -126,7 +126,7 @@ namespace WebSocketSharp.Net {
/// Gets the encoding that can be used with the entity body data included in the request.
/// </summary>
/// <value>
/// A <see cref="Encoding"/> that contains the encoding that can be used with entity body data.
/// A <see cref="Encoding"/> that contains the encoding that can be used with the entity body data.
/// </value>
public Encoding ContentEncoding {
// TODO: Always returns Encoding.Default
@ -142,7 +142,7 @@ namespace WebSocketSharp.Net {
/// </summary>
/// <value>
/// A <see cref="long"/> that contains the value of the Content-Length entity-header field.
/// <c>-1</c> if the size is not known.
/// The value is a number of bytes in the entity body data. <c>-1</c> if the size is not known.
/// </value>
public long ContentLength64 {
get { return content_length; }

View File

@ -6,7 +6,7 @@
// Gonzalo Paniagua Javier (gonzalo@novell.com)
//
// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
// Copyright (c) 2012 sta.blockhead (sta.blockhead@gmail.com)
// Copyright (c) 2012-2013 sta.blockhead (sta.blockhead@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@ -29,13 +29,21 @@
//
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
namespace WebSocketSharp.Net {
/// <summary>
/// Provides access to a response to a request being processed by a <see cref="HttpListener"/> instance.
/// </summary>
/// <remarks>
/// The HttpListenerResponse class cannot be inherited.
/// </remarks>
public sealed class HttpListenerResponse : IDisposable
{
#region Private Fields
@ -59,7 +67,7 @@ namespace WebSocketSharp.Net {
#endregion
#region Internal Fields
#region Internal Field
internal bool HeadersSent;
@ -85,17 +93,29 @@ namespace WebSocketSharp.Net {
#region Public Properties
/// <summary>
/// Gets or sets the encoding that can be used with the entity body data included in the response.
/// </summary>
/// <value>
/// A <see cref="Encoding"/> that contains the encoding that can be used with the entity body data.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
public Encoding ContentEncoding {
get {
if (content_encoding == null)
content_encoding = Encoding.Default;
return content_encoding;
}
set {
if (disposed)
throw new ObjectDisposedException (GetType ().ToString ());
// TODO: is null ok?
if (HeadersSent)
throw new InvalidOperationException ("Cannot be changed after headers are sent.");
@ -103,6 +123,22 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets or sets the size of the entity body data included in the response.
/// </summary>
/// <value>
/// A <see cref="long"/> that contains the value of the Content-Length entity-header field.
/// The value is a number of bytes in the entity body data.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// The value specified for a set operation is less than zero.
/// </exception>
public long ContentLength64 {
get { return content_length; }
set {
@ -113,51 +149,103 @@ namespace WebSocketSharp.Net {
throw new InvalidOperationException ("Cannot be changed after headers are sent.");
if (value < 0)
throw new ArgumentOutOfRangeException ("Must be >= 0", "value");
throw new ArgumentOutOfRangeException ("Must be greater than or equal zero.", "value");
cl_set = true;
content_length = value;
}
}
/// <summary>
/// Gets or sets the media type of the entity body included in the response.
/// </summary>
/// <value>
/// The type of the content.
/// A <see cref="string"/> that contains the value of the Content-Type entity-header field.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
/// <exception cref="ArgumentNullException">
/// The value specified for a set operation is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentException">
/// The value specified for a set operation is a <see cref="String.Empty"/>.
/// </exception>
public string ContentType {
get { return content_type; }
set {
// TODO: is null ok?
if (disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (HeadersSent)
throw new InvalidOperationException ("Cannot be changed after headers are sent.");
if (value.IsNull ())
throw new ArgumentNullException ("value");
if (value.IsEmpty ())
throw new ArgumentException ("Must not be empty.", "value");
content_type = value;
}
}
// RFC 2109, 2965 + the netscape specification at http://wp.netscape.com/newsref/std/cookie_spec.html
/// <summary>
/// Gets or sets the cookies returned with the response.
/// </summary>
/// <value>
/// A <see cref="CookieCollection"/> that contains the cookies returned with the response.
/// </value>
public CookieCollection Cookies {
get {
if (cookies == null)
cookies = new CookieCollection ();
return cookies;
}
set { cookies = value; } // null allowed?
set { cookies = value; }
}
/// <summary>
/// Gets or sets the HTTP headers returned to the client.
/// </summary>
/// <value>
/// A <see cref="WebHeaderCollection"/> that contains the HTTP headers returned to the client.
/// </value>
public WebHeaderCollection Headers {
get { return headers; }
set {
/**
* "If you attempt to set a Content-Length, Keep-Alive, Transfer-Encoding, or
* WWW-Authenticate header using the Headers property, an exception will be
* thrown. Use the KeepAlive or ContentLength64 properties to set these headers.
* You cannot set the Transfer-Encoding or WWW-Authenticate headers manually."
*/
// TODO: check if this is marked readonly after headers are sent.
/*
* "If you attempt to set a Content-Length, Keep-Alive, Transfer-Encoding, or
* WWW-Authenticate header using the Headers property, an exception will be
* thrown. Use the KeepAlive or ContentLength64 properties to set these headers.
* You cannot set the Transfer-Encoding or WWW-Authenticate headers manually."
*/
// TODO: Support for InvalidOperationException.
// TODO: check if this is marked readonly after headers are sent.
headers = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether the server requests a persistent connection.
/// </summary>
/// <value>
/// <c>true</c> if the server requests a persistent connection; otherwise, <c>false</c>.
/// The default is <c>true</c>.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
public bool KeepAlive {
get { return keep_alive; }
set {
@ -171,8 +259,20 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets a <see cref="Stream"/> to use to write the entity body data.
/// </summary>
/// <value>
/// A <see cref="Stream"/> to use to write the entity body data.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
public Stream OutputStream {
get {
if (disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (output_stream == null)
output_stream = context.Connection.GetResponseStream ();
@ -180,6 +280,25 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets or sets the HTTP version used in the response.
/// </summary>
/// <value>
/// A <see cref="Version"/> that contains the HTTP version used in the response.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
/// <exception cref="ArgumentNullException">
/// The value specified for a set operation is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentException">
/// The value specified for a set operation does not have its <see cref="Version.Major">Major</see> property set to 1 or
/// does not have its <see cref="Version.Minor">Minor</see> property set to either 0 or 1.
/// </exception>
public Version ProtocolVersion {
get { return version; }
set {
@ -188,20 +307,32 @@ namespace WebSocketSharp.Net {
if (HeadersSent)
throw new InvalidOperationException ("Cannot be changed after headers are sent.");
if (value == null)
throw new ArgumentNullException ("value");
if (value.Major != 1 || (value.Minor != 0 && value.Minor != 1))
throw new ArgumentException ("Must be 1.0 or 1.1", "value");
if (disposed)
throw new ObjectDisposedException (GetType ().ToString ());
version = value;
}
}
/// <summary>
/// Gets or sets the URL to which the client is redirected to locate a requested resource.
/// </summary>
/// <value>
/// A <see cref="string"/> that contains the value of the Location response-header field.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
/// <exception cref="ArgumentException">
/// The value specified for a set operation is a <see cref="String.Empty"/>.
/// </exception>
public string RedirectLocation {
get { return location; }
set {
@ -211,10 +342,25 @@ namespace WebSocketSharp.Net {
if (HeadersSent)
throw new InvalidOperationException ("Cannot be changed after headers are sent.");
if (value.IsEmpty ())
throw new ArgumentException ("Must not be empty.", "value");
location = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether the response uses the chunked transfer encoding.
/// </summary>
/// <value>
/// <c>true</c> if the response uses the chunked transfer encoding; otherwise, <c>false</c>.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
public bool SendChunked {
get { return chunked; }
set {
@ -228,6 +374,22 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets or sets the HTTP status code returned to the client.
/// </summary>
/// <value>
/// An <see cref="int"/> that indicates the HTTP status code for the response to the request.
/// The default is <see cref="HttpStatusCode.OK"/>.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
/// <exception cref="InvalidOperationException">
/// The response has been sent already.
/// </exception>
/// <exception cref="ProtocolViolationException">
/// The value specified for a set operation is invalid. Valid values are between 100 and 999.
/// </exception>
public int StatusCode {
get { return status_code; }
set {
@ -245,10 +407,18 @@ namespace WebSocketSharp.Net {
}
}
/// <summary>
/// Gets or sets a description of the HTTP status code returned to the client.
/// </summary>
/// <value>
/// A <see cref="String"/> that contains a description of the HTTP status code returned to the client.
/// </value>
public string StatusDescription {
get { return status_description; }
set {
status_description = value;
status_description = value.IsNullOrEmpty ()
? status_code.GetStatusDescription ()
: value;
}
}
@ -256,27 +426,39 @@ namespace WebSocketSharp.Net {
#region Private Methods
bool CanAddOrUpdate (Cookie cookie)
{
if (Cookies.Count == 0)
return true;
var found = FindCookie (cookie);
if (found.Count() == 0)
return true;
foreach (var c in found)
if (c.Version == cookie.Version)
return true;
return false;
}
void Close (bool force)
{
disposed = true;
context.Connection.Close (force);
}
bool FindCookie (Cookie cookie)
IEnumerable<Cookie> FindCookie (Cookie cookie)
{
string name = cookie.Name;
string domain = cookie.Domain;
string path = cookie.Path;
foreach (Cookie c in cookies) {
if (name != c.Name)
continue;
if (domain != c.Domain)
continue;
if (path == c.Path)
return true;
}
var name = cookie.Name;
var domain = cookie.Domain;
var path = cookie.Path;
return false;
return from Cookie c in Cookies
where String.Compare (name, c.Name, true, CultureInfo.InvariantCulture) == 0 &&
String.Compare (domain, c.Domain, true, CultureInfo.InvariantCulture) == 0 &&
String.Compare (path, c.Path, false, CultureInfo.InvariantCulture) == 0
select c;
}
void Init ()
@ -308,7 +490,7 @@ namespace WebSocketSharp.Net {
}
if (headers ["Server"] == null)
headers.SetInternal ("Server", "Mono-HTTPAPI/1.0");
headers.SetInternal ("Server", "WebSocketSharp-HTTPAPI/1.0");
CultureInfo inv = CultureInfo.InvariantCulture;
if (headers ["Date"] == null)
@ -394,6 +576,9 @@ namespace WebSocketSharp.Net {
#region Explicit Interface Implementation
/// <summary>
/// Releases all resource used by the <see cref="HttpListenerResponse"/>.
/// </summary>
void IDisposable.Dispose ()
{
Close (true); // TODO: Abort or Close?
@ -403,6 +588,9 @@ namespace WebSocketSharp.Net {
#region Public Methods
/// <summary>
/// Closes the connection to the client without sending a response.
/// </summary>
public void Abort ()
{
if (disposed)
@ -411,21 +599,44 @@ namespace WebSocketSharp.Net {
Close (true);
}
/// <summary>
/// Adds the specified HTTP header <paramref name="name"/> and <paramref name="value"/> to
/// the headers for this response.
/// </summary>
/// <param name="name">
/// A <see cref="string"/> that contains the name of the HTTP header to add.
/// </param>
/// <param name="value">
/// A <see cref="string"/> that contains the value of the HTTP header to add.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="name"/> is <see langword="null"/> or <see cref="String.Empty"/>.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// The length of <paramref name="value"/> is greater than 65,535 characters.
/// </exception>
public void AddHeader (string name, string value)
{
if (name == null)
if (name.IsNullOrEmpty())
throw new ArgumentNullException ("name");
if (name == "")
throw new ArgumentException ("'name' cannot be empty", "name");
// TODO: Check for forbidden headers and invalid characters.
// TODO: check for forbidden headers and invalid characters
if (value.Length > 65535)
throw new ArgumentOutOfRangeException ("value");
headers.Set (name, value);
}
/// <summary>
/// Adds the specified <see cref="Cookie"/> to the <see cref="Cookies"/> sent with the response.
/// </summary>
/// <param name="cookie">
/// A <see cref="Cookie"/> to add to the <see cref="Cookies"/>.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="cookie"/> is <see langword="null"/>.
/// </exception>
public void AppendCookie (Cookie cookie)
{
if (cookie == null)
@ -434,13 +645,26 @@ namespace WebSocketSharp.Net {
Cookies.Add (cookie);
}
/// <summary>
/// Appends a <paramref name="value"/> to the specified HTTP header sent with the response.
/// </summary>
/// <param name="name">
/// A <see cref="string"/> that contains the name of the HTTP header to append <paramref name="value"/> to.
/// </param>
/// <param name="value">
/// A <see cref="string"/> that contains the value to append to the HTTP header.
/// </param>
/// <exception cref="ArgumentException">
/// <paramref name="name"/> is <see langword="null"/> or <see cref="String.Empty"/>.
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// The length of <paramref name="value"/> is greater than 65,535 characters.
/// </exception>
public void AppendHeader (string name, string value)
{
if (name == null)
throw new ArgumentNullException ("name");
if (name == "")
throw new ArgumentException ("'name' cannot be empty", "name");
// TODO: Check for forbidden headers and invalid characters.
if (name.IsNullOrEmpty())
throw new ArgumentException ("'name' cannot be null or empty", "name");
if (value.Length > 65535)
throw new ArgumentOutOfRangeException ("value");
@ -448,6 +672,10 @@ namespace WebSocketSharp.Net {
headers.Add (name, value);
}
/// <summary>
/// Sends the response to the client and releases the resources associated with
/// the <see cref="HttpListenerResponse"/> instance.
/// </summary>
public void Close ()
{
if (disposed)
@ -456,20 +684,42 @@ namespace WebSocketSharp.Net {
Close (false);
}
/// <summary>
/// Sends the response with the specified array of <see cref="byte"/> to the client and
/// releases the resources associated with the <see cref="HttpListenerResponse"/> instance.
/// </summary>
/// <param name="responseEntity">
/// An array of <see cref="byte"/> that contains the response entity body data.
/// </param>
/// <param name="willBlock">
/// <c>true</c> if this method blocks execution while flushing the stream to the client; otherwise, <c>false</c>.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="responseEntity"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ObjectDisposedException">
/// This object is closed.
/// </exception>
public void Close (byte [] responseEntity, bool willBlock)
{
if (disposed)
return;
throw new ObjectDisposedException (GetType ().ToString ());
if (responseEntity == null)
throw new ArgumentNullException ("responseEntity");
// TODO: if willBlock -> BeginWrite + Close ?
// TODO: If willBlock -> BeginWrite + Close?
ContentLength64 = responseEntity.Length;
OutputStream.Write (responseEntity, 0, (int) content_length);
Close (false);
}
/// <summary>
/// Copies properties from the specified <see cref="HttpListenerResponse"/> to this response.
/// </summary>
/// <param name="templateResponse">
/// A <see cref="HttpListenerResponse"/> to copy.
/// </param>
public void CopyFrom (HttpListenerResponse templateResponse)
{
headers.Clear ();
@ -481,25 +731,40 @@ namespace WebSocketSharp.Net {
version = templateResponse.version;
}
/// <summary>
/// Configures the response to redirect the client's request to the specified <paramref name="url"/>.
/// </summary>
/// <param name="url">
/// A <see cref="string"/> that contains a URL to redirect the client's request to.
/// </param>
public void Redirect (string url)
{
StatusCode = 302; // Found
StatusCode = (int) HttpStatusCode.Redirect;
location = url;
}
/// <summary>
/// Adds or updates a <see cref="Cookie"/> in the <see cref="Cookies"/> sent with the response.
/// </summary>
/// <param name="cookie">
/// A <see cref="Cookie"/> to set.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="cookie"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentException">
/// <paramref name="cookie"/> already exists in the <see cref="Cookies"/> and
/// could not be replaced.
/// </exception>
public void SetCookie (Cookie cookie)
{
if (cookie == null)
if (cookie.IsNull())
throw new ArgumentNullException ("cookie");
if (cookies != null) {
if (FindCookie (cookie))
throw new ArgumentException ("The cookie already exists.");
} else {
cookies = new CookieCollection ();
}
if (!CanAddOrUpdate (cookie))
throw new ArgumentException ("Cannot be replaced.", "cookie");
cookies.Add (cookie);
Cookies.Add (cookie);
}
#endregion

View File

@ -36,8 +36,8 @@ namespace WebSocketSharp.Server {
/// </summary>
/// <remarks>
/// An HTTP request event occurs when a <see cref="HttpServer"/> instance receives an HTTP request.
/// If you want to get the HTTP request objects, you should access the <see cref="ResponseEventArgs.Request"/> property.
/// If you want to get the HTTP response objects to send, you should access the <see cref="ResponseEventArgs.Response"/> property.
/// If you want to get the HTTP request objects, you should access the <see cref="Request"/> property.
/// If you want to get the HTTP response objects to send, you should access the <see cref="Response"/> property.
/// </remarks>
public class HttpRequestEventArgs : EventArgs
{

View File

@ -43,6 +43,21 @@
<paramref name="listener" /> is <see langword="null" />.
</exception>
</member>
<member name="M:WebSocketSharp.Ext.Contains(System.String,System.Char[])">
<summary>
Determines whether the specified <see cref="T:System.String" /> contains any of characters
in the specified array of <see cref="T:System.Char" />.
</summary>
<returns>
<c>true</c> if <paramref name="str" /> contains any of <paramref name="chars" />; otherwise, <c>false</c>.
</returns>
<param name="str">
A <see cref="T:System.String" /> to test.
</param>
<param name="chars">
An array of <see cref="T:System.Char" /> that contains characters to find.
</param>
</member>
<member name="M:WebSocketSharp.Ext.Emit(System.EventHandler,System.Object,System.EventArgs)">
<summary>
Emit the specified <see cref="T:System.EventHandler" /> delegate if is not <see langword="null" />.
@ -206,12 +221,26 @@
Determines whether the specified <see cref="T:System.String" /> is a <see cref="F:System.String.Empty" />.
</summary>
<returns>
<c>true</c> if the <paramref name="value" /> parameter is a <see cref="F:System.String.Empty" />; otherwise, <c>false</c>.
<c>true</c> if <paramref name="value" /> is <see cref="F:System.String.Empty" />; otherwise, <c>false</c>.
</returns>
<param name="value">
A <see cref="T:System.String" /> to test.
</param>
</member>
<member name="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char)">
<summary>
Determines whether the specified <see cref="T:System.String" /> is enclosed in the specified <see cref="T:System.Char" />.
</summary>
<returns>
<c>true</c> if <paramref name="str" /> is enclosed in <paramref name="c" />; otherwise, <c>false</c>.
</returns>
<param name="str">
A <see cref="T:System.String" /> to test.
</param>
<param name="c">
A <see cref="T:System.Char" /> that contains character to find.
</param>
</member>
<member name="M:WebSocketSharp.Ext.IsHostOrder(WebSocketSharp.ByteOrder)">
<summary>
Determines whether the specified <see cref="T:WebSocketSharp.ByteOrder" /> is host (this computer architecture) byte order.
@ -714,7 +743,7 @@
Gets the received data as a <see cref="T:System.String" />.
</summary>
<value>
A <see cref="T:System.String" /> that contains a received data.
A <see cref="T:System.String" /> that contains the received data.
</value>
</member>
<member name="P:WebSocketSharp.MessageEventArgs.RawData">
@ -722,15 +751,15 @@
Gets the received data as an array of <see cref="T:System.Byte" />.
</summary>
<value>
An array of <see cref="T:System.Byte" /> that contains a received data.
An array of <see cref="T:System.Byte" /> that contains the received data.
</value>
</member>
<member name="P:WebSocketSharp.MessageEventArgs.Type">
<summary>
Gets the type of received data.
Gets the type of the received data.
</summary>
<value>
One of the <see cref="!:WebSocketSharp.Frame.Opcode" /> that indicates the type of received data.
One of the <see cref="T:WebSocketSharp.Opcode" /> values that indicates the type of the received data.
</value>
</member>
<member name="T:WebSocketSharp.CloseEventArgs">
@ -739,8 +768,8 @@
</summary>
<remarks>
The <see cref="E:WebSocketSharp.WebSocket.OnClose" /> event occurs when the WebSocket receives a close control frame or
the <c>WebSocket.Close</c> method is called. If you want to get the reason for closure, you should access the <see cref="P:WebSocketSharp.CloseEventArgs.Code" /> or
<see cref="P:WebSocketSharp.CloseEventArgs.Reason" /> properties.
the <c>WebSocket.Close</c> method is called. If you want to get the reason for closure, you should access
the <see cref="P:WebSocketSharp.CloseEventArgs.Code" /> or <see cref="P:WebSocketSharp.CloseEventArgs.Reason" /> properties.
</remarks>
</member>
<member name="P:WebSocketSharp.CloseEventArgs.Code">
@ -761,10 +790,10 @@
</member>
<member name="P:WebSocketSharp.CloseEventArgs.WasClean">
<summary>
Indicates whether the connection closed cleanly or not.
Indicates whether the WebSocket connection closed cleanly.
</summary>
<value>
<c>true</c> if the connection closed cleanly; otherwise, <c>false</c>.
<c>true</c> if the WebSocket connection closed cleanly; otherwise, <c>false</c>.
</value>
</member>
<member name="T:WebSocketSharp.ByteOrder">
@ -1472,6 +1501,491 @@
Indicates anonymous authentication.
</summary>
</member>
<member name="T:WebSocketSharp.Net.Cookie">
<summary>
Provides a set of properties and methods to use to manage the HTTP Cookie.
</summary>
<remarks>
The Cookie class cannot be inherited.
</remarks>
</member>
<member name="M:WebSocketSharp.Net.Cookie.#ctor">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class.
</summary>
</member>
<member name="M:WebSocketSharp.Net.Cookie.#ctor(System.String,System.String)">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class
with the specified <paramref name="name" /> and <paramref name="value" />.
</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the Name of the cookie.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the Value of the cookie.
</param>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="name" /> contains an invalid character.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> is <see langword="null" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> contains a string not enclosed in double quotes
that contains an invalid character.
</para>
</exception>
</member>
<member name="M:WebSocketSharp.Net.Cookie.#ctor(System.String,System.String,System.String)">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class
with the specified <paramref name="name" />, <paramref name="value" /> and <paramref name="path" />.
</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the Name of the cookie.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the Value of the cookie.
</param>
<param name="path">
A <see cref="T:System.String" /> that contains the value of the Path attribute of the cookie.
</param>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="name" /> contains an invalid character.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> is <see langword="null" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> contains a string not enclosed in double quotes
that contains an invalid character.
</para>
</exception>
</member>
<member name="M:WebSocketSharp.Net.Cookie.#ctor(System.String,System.String,System.String,System.String)">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class
with the specified <paramref name="name" />, <paramref name="value" />,
<paramref name="path" /> and <paramref name="domain" />.
</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the Name of the cookie.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the Value of the cookie.
</param>
<param name="path">
A <see cref="T:System.String" /> that contains the value of the Path attribute of the cookie.
</param>
<param name="domain">
A <see cref="T:System.String" /> that contains the value of the Domain attribute of the cookie.
</param>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="name" /> contains an invalid character.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> is <see langword="null" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> contains a string not enclosed in double quotes
that contains an invalid character.
</para>
</exception>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Comment">
<summary>
Gets or sets the value of the Comment attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a comment to document intended use of the cookie.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.CommentUri">
<summary>
Gets or sets the value of the CommentURL attribute of the cookie.
</summary>
<value>
A <see cref="T:System.Uri" /> that contains a URI that provides the comment
to document intended use of the cookie.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Discard">
<summary>
Gets or sets a value indicating whether the client discards the cookie unconditionally
when the client terminates.
</summary>
<value>
<c>true</c> if the client discards the cookie unconditionally when the client terminates;
otherwise, <c>false</c>. The default is <c>false</c>.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Domain">
<summary>
Gets or sets the value of the Domain attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a URI for which the cookie is valid.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Expired">
<summary>
Gets or sets a value indicating whether the cookie has expired.
</summary>
<value>
<c>true</c> if the cookie has expired; otherwise, <c>false</c>.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Expires">
<summary>
Gets or sets the value of the Expires attribute of the cookie.
</summary>
<value>
A <see cref="T:System.DateTime" /> that contains the date and time at which the cookie expires.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.HttpOnly">
<summary>
Gets or sets a value indicating non-HTTP APIs can access the cookie.
</summary>
<value>
<c>true</c> if non-HTTP APIs can not access the cookie; otherwise, <c>false</c>.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Name">
<summary>
Gets or sets the Name of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains the Name of the cookie.
</value>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
The value specified for a set operation is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
The value specified for a set operation contains an invalid character.
</para>
</exception>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Path">
<summary>
Gets or sets the value of the Path attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a subset of URI on the origin server
to which the cookie applies.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Port">
<summary>
Gets or sets the value of the Port attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a list of the TCP ports to which the cookie applies.
</value>
<exception cref="T:WebSocketSharp.Net.CookieException">
The value specified for a set operation could not be parsed or is not enclosed in double quotes.
</exception>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Secure">
<summary>
Gets or sets a value indicating whether the security level of the cookie is secure.
</summary>
<remarks>
When this property is <c>true</c>, the cookie may be included in the HTTP request
only if the request is transmitted over the HTTPS.
</remarks>
<value>
<c>true</c> if the security level of the cookie is secure; otherwise, <c>false</c>.
The default is <c>false</c>.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.TimeStamp">
<summary>
Gets the time when the cookie was issued.
</summary>
<value>
A <see cref="T:System.DateTime" /> that contains the time when the cookie was issued.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Value">
<summary>
Gets or sets the Value of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains the Value of the cookie.
</value>
</member>
<member name="P:WebSocketSharp.Net.Cookie.Version">
<summary>
Gets or sets the value of the Version attribute of the cookie.
</summary>
<value>
An <see cref="T:System.Int32" /> that contains the version of the HTTP state management
to which the cookie conforms.
</value>
<exception cref="T:System.ArgumentOutOfRangeException">
The value specified for a set operation is less than zero.
</exception>
</member>
<member name="M:WebSocketSharp.Net.Cookie.Equals(System.Object)">
<summary>
Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</summary>
<param name="comparand">
An <see cref="T:System.Object" /> to compare with the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</param>
<returns>
<c>true</c> if the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:WebSocketSharp.Net.Cookie" />;
otherwise, <c>false</c>.
</returns>
</member>
<member name="M:WebSocketSharp.Net.Cookie.GetHashCode">
<summary>
Serves as a hash function for a <see cref="T:WebSocketSharp.Net.Cookie" /> object.
</summary>
<returns>
An <see cref="T:System.Int32" /> that contains a hash code for this instance.
</returns>
</member>
<member name="M:WebSocketSharp.Net.Cookie.ToString">
<summary>
Returns a <see cref="T:System.String" /> that represents the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</summary>
<remarks>
This method returns a <see cref="T:System.String" /> to use to send an HTTP Cookie to an origin server.
</remarks>
<returns>
A <see cref="T:System.String" /> that represents the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</returns>
</member>
<member name="T:WebSocketSharp.Net.CookieCollection">
<summary>
Provides a collection container for instances of the <see cref="T:WebSocketSharp.Net.Cookie" /> class.
</summary>
</member>
<member name="M:WebSocketSharp.Net.CookieCollection.#ctor">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.CookieCollection" /> class.
</summary>
</member>
<member name="P:WebSocketSharp.Net.CookieCollection.Item(System.Int32)">
<summary>
Gets the <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="index" /> from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="index" /> in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
<param name="index">
An <see cref="T:System.Int32" /> that is the zero-based index of the <see cref="T:WebSocketSharp.Net.Cookie" /> to find.
</param>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than zero or <paramref name="index" /> is greater than or
equal to <see cref="P:WebSocketSharp.Net.CookieCollection.Count" />.
</exception>
</member>
<member name="P:WebSocketSharp.Net.CookieCollection.Item(System.String)">
<summary>
Gets the <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="name" /> from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="name" /> in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
<param name="name">
A <see cref="T:System.String" /> that is the name of the <see cref="T:WebSocketSharp.Net.Cookie" /> to find.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.
</exception>
</member>
<member name="P:WebSocketSharp.Net.CookieCollection.Count">
<summary>
Gets the number of cookies contained in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
An <see cref="T:System.Int32" /> that indicates the number of cookies contained in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
</member>
<member name="P:WebSocketSharp.Net.CookieCollection.IsReadOnly">
<summary>
Gets a value indicating whether the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is read-only.
</summary>
<value>
<c>true</c> if the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is read-only; otherwise, <c>false</c>.
The default is <c>true</c>.
</value>
</member>
<member name="P:WebSocketSharp.Net.CookieCollection.IsSynchronized">
<summary>
Gets a value indicating whether access to the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is thread safe.
</summary>
<value>
<c>true</c> if access to the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is thread safe; otherwise, <c>false</c>.
The default is <c>false</c>.
</value>
</member>
<member name="P:WebSocketSharp.Net.CookieCollection.SyncRoot">
<summary>
Gets an object to use to synchronize access to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
An <see cref="T:System.Object" /> to use to synchronize access to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
</member>
<member name="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie)">
<summary>
Add the specified <see cref="T:WebSocketSharp.Net.Cookie" /> to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<param name="cookie">
A <see cref="T:WebSocketSharp.Net.Cookie" /> to add to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookie" /> is <see langword="null" />.
</exception>
</member>
<member name="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection)">
<summary>
Add the elements of the specified <see cref="T:WebSocketSharp.Net.CookieCollection" /> to the current <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<param name="cookies">
A <see cref="T:WebSocketSharp.Net.CookieCollection" /> to add to the current <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookies" /> is <see langword="null" />.
</exception>
</member>
<member name="M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32)">
<summary>
Copies the elements of the <see cref="T:WebSocketSharp.Net.CookieCollection" /> to the specified <see cref="T:System.Array" />,
starting at the specified <paramref name="index" /> in the <paramref name="array" />.
</summary>
<param name="array">
An <see cref="T:System.Array" /> that is the destination of the elements copied from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<param name="index">
An <see cref="T:System.Int32" /> that indicates the zero-based index in <paramref name="array" /> at which copying begins.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="array" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than zero.
</exception>
</member>
<member name="M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32)">
<summary>
Copies the elements of the <see cref="T:WebSocketSharp.Net.CookieCollection" /> to the specified array of <see cref="T:WebSocketSharp.Net.Cookie" />,
starting at the specified <paramref name="index" /> in the <paramref name="array" />.
</summary>
<param name="array">
An array of <see cref="T:WebSocketSharp.Net.Cookie" /> that is the destination of the elements copied from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<param name="index">
An <see cref="T:System.Int32" /> that indicates the zero-based index in <paramref name="array" /> at which copying begins.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="array" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than zero.
</exception>
</member>
<member name="M:WebSocketSharp.Net.CookieCollection.GetEnumerator">
<summary>
Gets the enumerator to use to iterate through the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<returns>
An instance of an implementation of the <see cref="T:System.Collections.IEnumerator" /> interface
to use to iterate through the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</returns>
</member>
<member name="T:WebSocketSharp.Net.CookieException">
<summary>
The exception that is thrown when a <see cref="T:WebSocketSharp.Net.Cookie" /> gets an error.
</summary>
</member>
<member name="M:WebSocketSharp.Net.CookieException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.CookieException" /> class
with the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" />.
</summary>
<param name="serializationInfo">
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data.
</param>
<param name="streamingContext">
A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the contextual information about the source or destination.
</param>
</member>
<member name="M:WebSocketSharp.Net.CookieException.#ctor">
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.CookieException" /> class.
</summary>
</member>
<member name="M:WebSocketSharp.Net.CookieException.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
<summary>
Populates the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the <see cref="T:WebSocketSharp.Net.CookieException" />.
</summary>
<param name="serializationInfo">
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data.
</param>
<param name="streamingContext">
A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for the serialization.
</param>
</member>
<member name="M:WebSocketSharp.Net.CookieException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
<summary>
Populates the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the <see cref="T:WebSocketSharp.Net.CookieException" />.
</summary>
<param name="serializationInfo">
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data.
</param>
<param name="streamingContext">
A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for the serialization.
</param>
</member>
<member name="T:WebSocketSharp.Net.HttpListener">
<summary>
Provides a simple, programmatically controlled HTTP listener.
@ -1846,7 +2360,7 @@
</member>
<member name="T:WebSocketSharp.Net.HttpListenerRequest">
<summary>
Provides access to the HTTP request objects sent to a <see cref="T:WebSocketSharp.Net.HttpListener" /> instance.
Provides access to a request to a <see cref="T:WebSocketSharp.Net.HttpListener" /> instance.
</summary>
<remarks>
The HttpListenerRequest class cannot be inherited.
@ -1874,7 +2388,7 @@
Gets the encoding that can be used with the entity body data included in the request.
</summary>
<value>
A <see cref="T:System.Text.Encoding" /> that contains the encoding that can be used with entity body data.
A <see cref="T:System.Text.Encoding" /> that contains the encoding that can be used with the entity body data.
</value>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerRequest.ContentLength64">
@ -1883,7 +2397,7 @@
</summary>
<value>
A <see cref="T:System.Int64" /> that contains the value of the Content-Length entity-header field.
<c>-1</c> if the size is not known.
The value is a number of bytes in the entity body data. <c>-1</c> if the size is not known.
</value>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerRequest.ContentType">
@ -2120,6 +2634,298 @@
This method is not implemented.
</exception>
</member>
<member name="T:WebSocketSharp.Net.HttpListenerResponse">
<summary>
Provides access to a response to a request being processed by a <see cref="T:WebSocketSharp.Net.HttpListener" /> instance.
</summary>
<remarks>
The HttpListenerResponse class cannot be inherited.
</remarks>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.ContentEncoding">
<summary>
Gets or sets the encoding that can be used with the entity body data included in the response.
</summary>
<value>
A <see cref="T:System.Text.Encoding" /> that contains the encoding that can be used with the entity body data.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.ContentLength64">
<summary>
Gets or sets the size of the entity body data included in the response.
</summary>
<value>
A <see cref="T:System.Int64" /> that contains the value of the Content-Length entity-header field.
The value is a number of bytes in the entity body data.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
The value specified for a set operation is less than zero.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.ContentType">
<summary>
Gets or sets the media type of the entity body included in the response.
</summary>
<value>
The type of the content.
A <see cref="T:System.String" /> that contains the value of the Content-Type entity-header field.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentNullException">
The value specified for a set operation is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
The value specified for a set operation is a <see cref="F:System.String.Empty" />.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.Cookies">
<summary>
Gets or sets the cookies returned with the response.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.CookieCollection" /> that contains the cookies returned with the response.
</value>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.Headers">
<summary>
Gets or sets the HTTP headers returned to the client.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.WebHeaderCollection" /> that contains the HTTP headers returned to the client.
</value>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.KeepAlive">
<summary>
Gets or sets a value indicating whether the server requests a persistent connection.
</summary>
<value>
<c>true</c> if the server requests a persistent connection; otherwise, <c>false</c>.
The default is <c>true</c>.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.OutputStream">
<summary>
Gets a <see cref="T:System.IO.Stream" /> to use to write the entity body data.
</summary>
<value>
A <see cref="T:System.IO.Stream" /> to use to write the entity body data.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.ProtocolVersion">
<summary>
Gets or sets the HTTP version used in the response.
</summary>
<value>
A <see cref="T:System.Version" /> that contains the HTTP version used in the response.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentNullException">
The value specified for a set operation is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
The value specified for a set operation does not have its <see cref="P:System.Version.Major">Major</see> property set to 1 or
does not have its <see cref="P:System.Version.Minor">Minor</see> property set to either 0 or 1.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.RedirectLocation">
<summary>
Gets or sets the URL to which the client is redirected to locate a requested resource.
</summary>
<value>
A <see cref="T:System.String" /> that contains the value of the Location response-header field.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentException">
The value specified for a set operation is a <see cref="F:System.String.Empty" />.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.SendChunked">
<summary>
Gets or sets a value indicating whether the response uses the chunked transfer encoding.
</summary>
<value>
<c>true</c> if the response uses the chunked transfer encoding; otherwise, <c>false</c>.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.StatusCode">
<summary>
Gets or sets the HTTP status code returned to the client.
</summary>
<value>
An <see cref="T:System.Int32" /> that indicates the HTTP status code for the response to the request.
The default is <see cref="F:WebSocketSharp.Net.HttpStatusCode.OK" />.
</value>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.Net.ProtocolViolationException">
The value specified for a set operation is invalid. Valid values are between 100 and 999.
</exception>
</member>
<member name="P:WebSocketSharp.Net.HttpListenerResponse.StatusDescription">
<summary>
Gets or sets a description of the HTTP status code returned to the client.
</summary>
<value>
A <see cref="T:System.String" /> that contains a description of the HTTP status code returned to the client.
</value>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.System#IDisposable#Dispose">
<summary>
Releases all resource used by the <see cref="T:WebSocketSharp.Net.HttpListenerResponse" />.
</summary>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.Abort">
<summary>
Closes the connection to the client without sending a response.
</summary>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.AddHeader(System.String,System.String)">
<summary>
Adds the specified HTTP header <paramref name="name" /> and <paramref name="value" /> to
the headers for this response.
</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the name of the HTTP header to add.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the value of the HTTP header to add.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
The length of <paramref name="value" /> is greater than 65,535 characters.
</exception>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.AppendCookie(WebSocketSharp.Net.Cookie)">
<summary>
Adds the specified <see cref="T:WebSocketSharp.Net.Cookie" /> to the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" /> sent with the response.
</summary>
<param name="cookie">
A <see cref="T:WebSocketSharp.Net.Cookie" /> to add to the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" />.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookie" /> is <see langword="null" />.
</exception>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.AppendHeader(System.String,System.String)">
<summary>
Appends a <paramref name="value" /> to the specified HTTP header sent with the response.
</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the name of the HTTP header to append <paramref name="value" /> to.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the value to append to the HTTP header.
</param>
<exception cref="T:System.ArgumentException">
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
The length of <paramref name="value" /> is greater than 65,535 characters.
</exception>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.Close">
<summary>
Sends the response to the client and releases the resources associated with
the <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> instance.
</summary>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.Close(System.Byte[],System.Boolean)">
<summary>
Sends the response with the specified array of <see cref="T:System.Byte" /> to the client and
releases the resources associated with the <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> instance.
</summary>
<param name="responseEntity">
An array of <see cref="T:System.Byte" /> that contains the response entity body data.
</param>
<param name="willBlock">
<c>true</c> if this method blocks execution while flushing the stream to the client; otherwise, <c>false</c>.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="responseEntity" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.CopyFrom(WebSocketSharp.Net.HttpListenerResponse)">
<summary>
Copies properties from the specified <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> to this response.
</summary>
<param name="templateResponse">
A <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> to copy.
</param>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.Redirect(System.String)">
<summary>
Configures the response to redirect the client's request to the specified <paramref name="url" />.
</summary>
<param name="url">
A <see cref="T:System.String" /> that contains a URL to redirect the client's request to.
</param>
</member>
<member name="M:WebSocketSharp.Net.HttpListenerResponse.SetCookie(WebSocketSharp.Net.Cookie)">
<summary>
Adds or updates a <see cref="T:WebSocketSharp.Net.Cookie" /> in the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" /> sent with the response.
</summary>
<param name="cookie">
A <see cref="T:WebSocketSharp.Net.Cookie" /> to set.
</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookie" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
<paramref name="cookie" /> already exists in the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" /> and
could not be replaced.
</exception>
</member>
<member name="M:WebSocketSharp.Net.HttpUtility.HtmlDecode(System.String)">
<summary>
Decodes an HTML-encoded string and returns the decoded string.
@ -3663,8 +4469,8 @@
</summary>
<remarks>
An HTTP request event occurs when a <see cref="T:WebSocketSharp.Server.HttpServer" /> instance receives an HTTP request.
If you want to get the HTTP request objects, you should access the <see cref="!:ResponseEventArgs.Request" /> property.
If you want to get the HTTP response objects to send, you should access the <see cref="!:ResponseEventArgs.Response" /> property.
If you want to get the HTTP request objects, you should access the <see cref="P:WebSocketSharp.Server.HttpRequestEventArgs.Request" /> property.
If you want to get the HTTP response objects to send, you should access the <see cref="P:WebSocketSharp.Server.HttpRequestEventArgs.Response" /> property.
</remarks>
</member>
<member name="P:WebSocketSharp.Server.HttpRequestEventArgs.Request">

View File

@ -207,8 +207,8 @@
</div>
<h1 class="PageTitle" id="T:WebSocketSharp.Net.Cookie">Cookie Class</h1>
<p class="Summary" id="T:WebSocketSharp.Net.Cookie:Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Provides a set of properties and methods to use to manage the HTTP Cookie.
</p>
<div id="T:WebSocketSharp.Net.Cookie:Signature">
<h2>Syntax</h2>
<div class="Signature">public sealed class <b>Cookie</b></div>
@ -216,8 +216,8 @@
<div class="Remarks" id="T:WebSocketSharp.Net.Cookie:Docs">
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="T:WebSocketSharp.Net.Cookie:Docs:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</div>
The Cookie class cannot be inherited.
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="T:WebSocketSharp.Net.Cookie:Docs:Version Information">
<b>Namespace: </b>WebSocketSharp.Net<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
@ -243,8 +243,8 @@
</b>()</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class.
</td>
</tr>
<tr valign="top">
<td>
@ -258,8 +258,9 @@
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>)</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class
with the specified <i>name</i> and <i>value</i>.
</td>
</tr>
<tr valign="top">
<td>
@ -273,8 +274,9 @@
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>)</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class
with the specified <i>name</i>, <i>value</i> and <i>path</i>.
</td>
</tr>
<tr valign="top">
<td>
@ -288,8 +290,10 @@
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>)</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class
with the specified <i>name</i>, <i>value</i>,
<i>path</i> and <i>domain</i>.
</td>
</tr>
</table>
</div>
@ -311,7 +315,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the Comment attribute of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -326,7 +332,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Uri">Uri</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the CommentURL attribute of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -341,7 +349,10 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets a value indicating whether the client discards the cookie unconditionally
when the client terminates.
</td>
</tr>
<tr valign="top">
<td>
@ -356,7 +367,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the Domain attribute of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -371,7 +384,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets a value indicating whether the cookie has expired.
</td>
</tr>
<tr valign="top">
<td>
@ -386,7 +401,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.DateTime">DateTime</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the Expires attribute of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -401,7 +418,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets a value indicating non-HTTP APIs can access the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -416,7 +435,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the Name of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -431,7 +452,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the Path attribute of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -446,7 +469,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the Port attribute of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -461,7 +486,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets a value indicating whether the security level of the cookie is secure.
</td>
</tr>
<tr valign="top">
<td>[read-only]<div></div></td>
@ -473,7 +500,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.DateTime">DateTime</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets the time when the cookie was issued.
</td>
</tr>
<tr valign="top">
<td>
@ -488,7 +517,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the Value of the cookie.
</td>
</tr>
<tr valign="top">
<td>
@ -503,7 +534,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets or sets the value of the Version attribute of the cookie.
</td>
</tr>
</table>
</div>
@ -519,7 +552,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.Cookie.Equals(System.Object)">Equals</a>
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a>)<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a></nobr><blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a>)<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a></nobr><blockquote>
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> is equal to the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
@ -528,7 +563,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.Cookie.GetHashCode">GetHashCode</a>
</b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a></nobr><blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a></nobr><blockquote>
Serves as a hash function for a <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> object.
</blockquote></td>
</tr>
<tr valign="top">
<td>
@ -537,7 +574,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.Cookie.ToString">ToString</a>
</b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a></nobr><blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a></nobr><blockquote>
Returns a <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that represents the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>.
</blockquote></td>
</tr>
</table>
</div>
@ -580,8 +619,8 @@
<h3 id="C:WebSocketSharp.Net.Cookie">Cookie Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.Cookie:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class.
</p>
<h2>Syntax</h2>
<div class="Signature">public <b>Cookie</b> ()</div>
<h2 class="Section">Remarks</h2>
@ -596,8 +635,9 @@
<h3 id="C:WebSocketSharp.Net.Cookie(System.String,System.String)">Cookie Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.Cookie(System.String,System.String):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class
with the specified <i>name</i> and <i>value</i>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <b>Cookie</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> name, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> value)</div>
<h4 class="Subsection">Parameters</h4>
@ -607,16 +647,54 @@
<i>name</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Name of the cookie.
</dd>
<dt>
<i>value</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Value of the cookie.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="C:WebSocketSharp.Net.Cookie(System.String,System.String):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>
</td>
<td>
<p>
<i>name</i> is <tt>null</tt> or <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>.
</p>
<p>
- or -
</p>
<p>
<i>name</i> contains an invalid character.
</p>
<p>
- or -
</p>
<p>
<i>value</i> is <tt>null</tt>.
</p>
<p>
- or -
</p>
<p>
<i>value</i> contains a string not enclosed in double quotes
that contains an invalid character.
</p>
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="C:WebSocketSharp.Net.Cookie(System.String,System.String):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -629,8 +707,9 @@
<h3 id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String)">Cookie Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class
with the specified <i>name</i>, <i>value</i> and <i>path</i>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <b>Cookie</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> name, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> value, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> path)</div>
<h4 class="Subsection">Parameters</h4>
@ -640,22 +719,60 @@
<i>name</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Name of the cookie.
</dd>
<dt>
<i>value</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Value of the cookie.
</dd>
<dt>
<i>path</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the value of the Path attribute of the cookie.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>
</td>
<td>
<p>
<i>name</i> is <tt>null</tt> or <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>.
</p>
<p>
- or -
</p>
<p>
<i>name</i> contains an invalid character.
</p>
<p>
- or -
</p>
<p>
<i>value</i> is <tt>null</tt>.
</p>
<p>
- or -
</p>
<p>
<i>value</i> contains a string not enclosed in double quotes
that contains an invalid character.
</p>
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -668,8 +785,10 @@
<h3 id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String,System.String)">Cookie Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String,System.String):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class
with the specified <i>name</i>, <i>value</i>,
<i>path</i> and <i>domain</i>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <b>Cookie</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> name, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> value, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> path, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> domain)</div>
<h4 class="Subsection">Parameters</h4>
@ -679,28 +798,66 @@
<i>name</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Name of the cookie.
</dd>
<dt>
<i>value</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Value of the cookie.
</dd>
<dt>
<i>path</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the value of the Path attribute of the cookie.
</dd>
<dt>
<i>domain</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the value of the Domain attribute of the cookie.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String,System.String):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>
</td>
<td>
<p>
<i>name</i> is <tt>null</tt> or <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>.
</p>
<p>
- or -
</p>
<p>
<i>name</i> contains an invalid character.
</p>
<p>
- or -
</p>
<p>
<i>value</i> is <tt>null</tt>.
</p>
<p>
- or -
</p>
<p>
<i>value</i> contains a string not enclosed in double quotes
that contains an invalid character.
</p>
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="C:WebSocketSharp.Net.Cookie(System.String,System.String,System.String,System.String):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -713,14 +870,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Comment">Comment Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Comment:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the Comment attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Comment</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Comment:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains a comment to document intended use of the cookie.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Comment:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -733,14 +890,15 @@
<h3 id="P:WebSocketSharp.Net.Cookie.CommentUri">CommentUri Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.CommentUri:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the CommentURL attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Uri">Uri</a> <b>CommentUri</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.CommentUri:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Uri">Uri</a> that contains a URI that provides the comment
to document intended use of the cookie.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.CommentUri:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -753,14 +911,16 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Discard">Discard Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Discard:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets a value indicating whether the client discards the cookie unconditionally
when the client terminates.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>Discard</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Discard:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if the client discards the cookie unconditionally when the client terminates;
otherwise, <tt>false</tt>. The default is <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Discard:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -773,14 +933,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Domain">Domain Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Domain:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the Domain attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Domain</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Domain:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains a URI for which the cookie is valid.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Domain:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -793,25 +953,26 @@
<h3 id="M:WebSocketSharp.Net.Cookie.Equals(System.Object)">Equals Method</h3>
<blockquote id="M:WebSocketSharp.Net.Cookie.Equals(System.Object):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> is equal to the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public override <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>Equals</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> obj)</div>
<div class="Signature">public override <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>Equals</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> comparand)</div>
<h4 class="Subsection">Parameters</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.Cookie.Equals(System.Object):Parameters">
<dl>
<dt>
<i>obj</i>
<i>comparand</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> to compare with the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.Cookie.Equals(System.Object):Returns">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> is equal to the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>;
otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.Cookie.Equals(System.Object):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -824,14 +985,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Expired">Expired Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Expired:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets a value indicating whether the cookie has expired.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>Expired</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Expired:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if the cookie has expired; otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Expired:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -844,14 +1005,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Expires">Expires Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Expires:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the Expires attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.DateTime">DateTime</a> <b>Expires</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Expires:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.DateTime">DateTime</a> that contains the date and time at which the cookie expires.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Expires:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -864,14 +1025,14 @@
<h3 id="M:WebSocketSharp.Net.Cookie.GetHashCode">GetHashCode Method</h3>
<blockquote id="M:WebSocketSharp.Net.Cookie.GetHashCode:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Serves as a hash function for a <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> object.
</p>
<h2>Syntax</h2>
<div class="Signature">public override <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> <b>GetHashCode</b> ()</div>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.Cookie.GetHashCode:Returns">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> that contains a hash code for this instance.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.Cookie.GetHashCode:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -884,14 +1045,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.HttpOnly">HttpOnly Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.HttpOnly:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets a value indicating non-HTTP APIs can access the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>HttpOnly</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.HttpOnly:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if non-HTTP APIs can not access the cookie; otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.HttpOnly:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -904,13 +1065,38 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Name">Name Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Name:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the Name of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Name</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Name:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Name of the cookie.
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Name:Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>
</td>
<td>
<p>
The value specified for a set operation is <tt>null</tt> or <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>.
</p>
<p>
- or -
</p>
<p>
The value specified for a set operation contains an invalid character.
</p>
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Name:Remarks">
@ -924,14 +1110,15 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Path">Path Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Path:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the Path attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Path</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Path:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains a subset of URI on the origin server
to which the cookie applies.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Path:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -944,13 +1131,30 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Port">Port Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Port:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the Port attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Port</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Port:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains a list of the TCP ports to which the cookie applies.
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Port:Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>
</td>
<td>
The value specified for a set operation could not be parsed or is not enclosed in double quotes.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Port:Remarks">
@ -964,18 +1168,20 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Secure">Secure Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Secure:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets a value indicating whether the security level of the cookie is secure.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>Secure</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Secure:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if the security level of the cookie is secure; otherwise, <tt>false</tt>.
The default is <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Secure:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</div>
When this property is <tt>true</tt>, the cookie may be included in the HTTP request
only if the request is transmitted over the HTTPS.
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Secure:Version Information">
<b>Namespace: </b>WebSocketSharp.Net<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
@ -984,14 +1190,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.TimeStamp">TimeStamp Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.TimeStamp:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets the time when the cookie was issued.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.DateTime">DateTime</a> <b>TimeStamp</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.TimeStamp:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.DateTime">DateTime</a> that contains the time when the cookie was issued.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.TimeStamp:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -1004,18 +1210,18 @@
<h3 id="M:WebSocketSharp.Net.Cookie.ToString">ToString Method</h3>
<blockquote id="M:WebSocketSharp.Net.Cookie.ToString:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Returns a <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that represents the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public override <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>ToString</b> ()</div>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.Cookie.ToString:Returns">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that represents the current <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.Cookie.ToString:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</div>
This method returns a <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> to use to send an HTTP Cookie to an origin server.
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.Cookie.ToString:Version Information">
<b>Namespace: </b>WebSocketSharp.Net<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
@ -1024,14 +1230,14 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Value">Value Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Value:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the Value of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Value</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Value:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the Value of the cookie.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Value:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -1044,13 +1250,31 @@
<h3 id="P:WebSocketSharp.Net.Cookie.Version">Version Property</h3>
<blockquote id="P:WebSocketSharp.Net.Cookie.Version:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets or sets the value of the Version attribute of the cookie.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> <b>Version</b> { get; set; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Version:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> that contains the version of the HTTP state management
to which the cookie conforms.
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.Cookie.Version:Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentOutOfRangeException">ArgumentOutOfRangeException</a>
</td>
<td>
The value specified for a set operation is less than zero.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.Cookie.Version:Remarks">

View File

@ -207,8 +207,8 @@
</div>
<h1 class="PageTitle" id="T:WebSocketSharp.Net.CookieCollection">CookieCollection Class</h1>
<p class="Summary" id="T:WebSocketSharp.Net.CookieCollection:Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Provides a collection container for instances of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class.
</p>
<div id="T:WebSocketSharp.Net.CookieCollection:Signature">
<h2>Syntax</h2>
<div class="Signature">public class <b>CookieCollection</b> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Collections.ICollection">ICollection</a></div>
@ -243,8 +243,8 @@
</b>()</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> class.
</td>
</tr>
</table>
</div>
@ -263,7 +263,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets the number of cookies contained in the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</td>
</tr>
<tr valign="top">
<td>[read-only]<div></div></td>
@ -275,7 +277,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets a value indicating whether the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> is read-only.
</td>
</tr>
<tr valign="top">
<td>[read-only]<div></div></td>
@ -287,7 +291,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets a value indicating whether access to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> is thread safe.
</td>
</tr>
<tr valign="top">
<td>[read-only]<div><i>default property</i></div><div></div></td>
@ -298,7 +304,9 @@
<td>
<i>
<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> with the specified <i>index</i> from the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</td>
</tr>
<tr valign="top">
<td>[read-only]<div><i>default property</i></div><div></div></td>
@ -309,7 +317,9 @@
<td>
<i>
<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> with the specified <i>name</i> from the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</td>
</tr>
<tr valign="top">
<td>[read-only]<div></div></td>
@ -321,7 +331,9 @@
<td>
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a>
</i>. <span class="NotEntered">Documentation for this section has not yet been entered.</span></td>
</i>.
Gets an object to use to synchronize access to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</td>
</tr>
</table>
</div>
@ -338,7 +350,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie)">Add</a>
</b>(<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>)<blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>(<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>)<blockquote>
Add the specified <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
@ -348,7 +362,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection)">Add</a>
</b>(<a href="../WebSocketSharp.Net/CookieCollection.html">CookieCollection</a>)<blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>(<a href="../WebSocketSharp.Net/CookieCollection.html">CookieCollection</a>)<blockquote>
Add the elements of the specified <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to the current <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
@ -358,7 +374,10 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32)">CopyTo</a>
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Array">Array</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>)<blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Array">Array</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>)<blockquote>
Copies the elements of the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Array">Array</a>,
starting at the specified <i>index</i> in the <i>array</i>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
@ -368,7 +387,10 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32)">CopyTo</a>
</b>(<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>[], <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>)<blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>(<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>[], <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>)<blockquote>
Copies the elements of the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to the specified array of <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>,
starting at the specified <i>index</i> in the <i>array</i>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
@ -378,7 +400,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.CookieCollection.GetEnumerator">GetEnumerator</a>
</b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Collections.IEnumerator">IEnumerator</a></nobr><blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Collections.IEnumerator">IEnumerator</a></nobr><blockquote>
Gets the enumerator to use to iterate through the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote></td>
</tr>
</table>
</div>
@ -421,8 +445,8 @@
<h3 id="C:WebSocketSharp.Net.CookieCollection">CookieCollection Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.CookieCollection:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> class.
</p>
<h2>Syntax</h2>
<div class="Signature">public <b>CookieCollection</b> ()</div>
<h2 class="Section">Remarks</h2>
@ -437,8 +461,8 @@
<h3 id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie)">Add Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Add the specified <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>Add</b> (<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a> cookie)</div>
<h4 class="Subsection">Parameters</h4>
@ -448,10 +472,27 @@
<i>cookie</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> to add to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentNullException">ArgumentNullException</a>
</td>
<td>
<i>cookie</i> is <tt>null</tt>.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.Cookie):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -464,8 +505,8 @@
<h3 id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection)">Add Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Add the elements of the specified <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to the current <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>Add</b> (<a href="../WebSocketSharp.Net/CookieCollection.html">CookieCollection</a> cookies)</div>
<h4 class="Subsection">Parameters</h4>
@ -475,10 +516,27 @@
<i>cookies</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to add to the current <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentNullException">ArgumentNullException</a>
</td>
<td>
<i>cookies</i> is <tt>null</tt>.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.CookieCollection.Add(WebSocketSharp.Net.CookieCollection):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -491,8 +549,9 @@
<h3 id="M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32)">CopyTo Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Copies the elements of the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Array">Array</a>,
starting at the specified <i>index</i> in the <i>array</i>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>CopyTo</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Array">Array</a> array, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> index)</div>
<h4 class="Subsection">Parameters</h4>
@ -502,16 +561,41 @@
<i>array</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Array">Array</a> that is the destination of the elements copied from the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</dd>
<dt>
<i>index</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> that indicates the zero-based index in <i>array</i> at which copying begins.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentNullException">ArgumentNullException</a>
</td>
<td>
<i>array</i> is <tt>null</tt>.
</td>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentOutOfRangeException">ArgumentOutOfRangeException</a>
</td>
<td>
<i>index</i> is less than zero.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.CookieCollection.CopyTo(System.Array,System.Int32):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -524,8 +608,9 @@
<h3 id="M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32)">CopyTo Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Copies the elements of the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> to the specified array of <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a>,
starting at the specified <i>index</i> in the <i>array</i>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>CopyTo</b> (<a href="../WebSocketSharp.Net/Cookie.html">Cookie</a>[] array, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> index)</div>
<h4 class="Subsection">Parameters</h4>
@ -535,16 +620,41 @@
<i>array</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
An array of <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> that is the destination of the elements copied from the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</dd>
<dt>
<i>index</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> that indicates the zero-based index in <i>array</i> at which copying begins.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentNullException">ArgumentNullException</a>
</td>
<td>
<i>array</i> is <tt>null</tt>.
</td>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentOutOfRangeException">ArgumentOutOfRangeException</a>
</td>
<td>
<i>index</i> is less than zero.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.CookieCollection.CopyTo(WebSocketSharp.Net.Cookie[],System.Int32):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -557,14 +667,14 @@
<h3 id="P:WebSocketSharp.Net.CookieCollection.Count">Count Property</h3>
<blockquote id="P:WebSocketSharp.Net.CookieCollection.Count:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets the number of cookies contained in the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> <b>Count</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.Count:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> that indicates the number of cookies contained in the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.CookieCollection.Count:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -577,14 +687,15 @@
<h3 id="M:WebSocketSharp.Net.CookieCollection.GetEnumerator">GetEnumerator Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieCollection.GetEnumerator:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets the enumerator to use to iterate through the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Collections.IEnumerator">IEnumerator</a> <b>GetEnumerator</b> ()</div>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.CookieCollection.GetEnumerator:Returns">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
An instance of an implementation of the <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Collections.IEnumerator">IEnumerator</a> interface
to use to iterate through the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Net.CookieCollection.GetEnumerator:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -597,14 +708,15 @@
<h3 id="P:WebSocketSharp.Net.CookieCollection.IsReadOnly">IsReadOnly Property</h3>
<blockquote id="P:WebSocketSharp.Net.CookieCollection.IsReadOnly:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets a value indicating whether the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> is read-only.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>IsReadOnly</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.IsReadOnly:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> is read-only; otherwise, <tt>false</tt>.
The default is <tt>true</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.CookieCollection.IsReadOnly:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -617,14 +729,15 @@
<h3 id="P:WebSocketSharp.Net.CookieCollection.IsSynchronized">IsSynchronized Property</h3>
<blockquote id="P:WebSocketSharp.Net.CookieCollection.IsSynchronized:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets a value indicating whether access to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> is thread safe.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>IsSynchronized</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.IsSynchronized:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
<tt>true</tt> if access to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a> is thread safe; otherwise, <tt>false</tt>.
The default is <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.CookieCollection.IsSynchronized:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
@ -637,8 +750,8 @@
<h3 id="P:WebSocketSharp.Net.CookieCollection.Item(System.Int32)">Item Property</h3>
<blockquote id="P:WebSocketSharp.Net.CookieCollection.Item(System.Int32):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> with the specified <i>index</i> from the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">
<p>
@ -651,13 +764,31 @@
<i>index</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> that is the zero-based index of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> to find.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.Item(System.Int32):Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
A <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> with the specified <i>index</i> in the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.Item(System.Int32):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentOutOfRangeException">ArgumentOutOfRangeException</a>
</td>
<td>
<i>index</i> is less than zero or <i>index</i> is greater than or
equal to <a href="../WebSocketSharp.Net/CookieCollection.html#P:WebSocketSharp.Net.CookieCollection.Count">CookieCollection.Count</a>.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.CookieCollection.Item(System.Int32):Remarks">
@ -671,8 +802,8 @@
<h3 id="P:WebSocketSharp.Net.CookieCollection.Item(System.String)">Item Property</h3>
<blockquote id="P:WebSocketSharp.Net.CookieCollection.Item(System.String):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> with the specified <i>name</i> from the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">
<p>
@ -685,13 +816,30 @@
<i>name</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that is the name of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> to find.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.Item(System.String):Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
A <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> with the specified <i>name</i> in the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote>
<h4 class="Subsection">Exceptions</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.Item(System.String):Exceptions">
<table class="TypeDocumentation">
<tr>
<th>Type</th>
<th>Reason</th>
</tr>
<tr valign="top">
<td>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.ArgumentNullException">ArgumentNullException</a>
</td>
<td>
<i>name</i> is <tt>null</tt>.
</td>
</tr>
</table>
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.CookieCollection.Item(System.String):Remarks">
@ -705,14 +853,14 @@
<h3 id="P:WebSocketSharp.Net.CookieCollection.SyncRoot">SyncRoot Property</h3>
<blockquote id="P:WebSocketSharp.Net.CookieCollection.SyncRoot:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Gets an object to use to synchronize access to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> <b>SyncRoot</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.CookieCollection.SyncRoot:Value">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</blockquote>
An <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object">object</a> to use to synchronize access to the <a href="../WebSocketSharp.Net/CookieCollection.html">WebSocketSharp.Net.CookieCollection</a>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.CookieCollection.SyncRoot:Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>

View File

@ -207,8 +207,8 @@
</div>
<h1 class="PageTitle" id="T:WebSocketSharp.Net.CookieException">CookieException Class</h1>
<p class="Summary" id="T:WebSocketSharp.Net.CookieException:Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
The exception that is thrown when a <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> gets an error.
</p>
<div id="T:WebSocketSharp.Net.CookieException:Signature">
<h2>Syntax</h2>
<div class="Signature">public class <b>CookieException</b> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.FormatException">FormatException</a></div>
@ -243,8 +243,8 @@
</b>()</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a> class.
</td>
</tr>
</table>
</div>
@ -265,8 +265,9 @@
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a>)</div>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Initializes a new instance of the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a> class
with the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> and <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a>.
</td>
</tr>
</table>
</div>
@ -282,7 +283,9 @@
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Net.CookieException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">GetObjectData</a>
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a>)<blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span></blockquote></td>
</b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a>)<blockquote>
Populates the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> with the data needed to serialize the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>.
</blockquote></td>
</tr>
</table>
</div>
@ -302,8 +305,8 @@
</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Populates the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> with the data needed to serialize the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>.
</td>
</tr>
</table>
</div>
@ -346,8 +349,8 @@
<h3 id="C:WebSocketSharp.Net.CookieException">CookieException Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.CookieException:member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a> class.
</p>
<h2>Syntax</h2>
<div class="Signature">public <b>CookieException</b> ()</div>
<h2 class="Section">Remarks</h2>
@ -362,25 +365,26 @@
<h3 id="C:WebSocketSharp.Net.CookieException(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">CookieException Constructor</h3>
<blockquote id="C:WebSocketSharp.Net.CookieException(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Initializes a new instance of the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a> class
with the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> and <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">protected <b>CookieException</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> info, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> context)</div>
<div class="Signature">protected <b>CookieException</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> serializationInfo, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> streamingContext)</div>
<h4 class="Subsection">Parameters</h4>
<blockquote class="SubsectionBox" id="C:WebSocketSharp.Net.CookieException(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext):Parameters">
<dl>
<dt>
<i>info</i>
<i>serializationInfo</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> that holds the serialized object data.
</dd>
<dt>
<i>context</i>
<i>streamingContext</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> that contains the contextual information about the source or destination.
</dd>
</dl>
</blockquote>
<h2 class="Section">Remarks</h2>
@ -395,8 +399,8 @@
<h3 id="M:WebSocketSharp.Net.CookieException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">GetObjectData Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Populates the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> with the data needed to serialize the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public override <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>GetObjectData</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> serializationInfo, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> streamingContext)</div>
<h4 class="Subsection">Parameters</h4>
@ -406,14 +410,14 @@
<i>serializationInfo</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> that holds the serialized object data.
</dd>
<dt>
<i>streamingContext</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> that specifies the destination for the serialization.
</dd>
</dl>
</blockquote>
<h2 class="Section">Remarks</h2>
@ -428,26 +432,26 @@
<h3 id="M:WebSocketSharp.Net.CookieException.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">System.Runtime.Serialization.ISerializable.GetObjectData Method</h3>
<blockquote id="M:WebSocketSharp.Net.CookieException.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext):member">
<p class="Summary">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</p>
Populates the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> with the data needed to serialize the <a href="../WebSocketSharp.Net/CookieException.html">WebSocketSharp.Net.CookieException</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>System.Runtime.Serialization.ISerializable.GetObjectData</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> info, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> context)</div>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Void">void</a> <b>System.Runtime.Serialization.ISerializable.GetObjectData</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> serializationInfo, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> streamingContext)</div>
<h4 class="Subsection">Parameters</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Net.CookieException.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext):Parameters">
<dl>
<dt>
<i>info</i>
<i>serializationInfo</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.SerializationInfo">System.Runtime.Serialization.SerializationInfo</a> that holds the serialized object data.
</dd>
<dt>
<i>context</i>
<i>streamingContext</i>
</dt>
<dd>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Runtime.Serialization.StreamingContext">System.Runtime.Serialization.StreamingContext</a> that specifies the destination for the serialization.
</dd>
</dl>
</blockquote>
<h2 class="Section">Remarks</h2>

View File

@ -207,7 +207,7 @@
</div>
<h1 class="PageTitle" id="T:WebSocketSharp.Net.HttpListenerRequest">HttpListenerRequest Class</h1>
<p class="Summary" id="T:WebSocketSharp.Net.HttpListenerRequest:Summary">
Provides access to the HTTP request objects sent to a <a href="../WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
Provides access to a request to a <a href="../WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
</p>
<div id="T:WebSocketSharp.Net.HttpListenerRequest:Signature">
<h2>Syntax</h2>
@ -806,7 +806,7 @@
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Text.Encoding">System.Text.Encoding</a> <b>ContentEncoding</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.HttpListenerRequest.ContentEncoding:Value">
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Text.Encoding">System.Text.Encoding</a> that contains the encoding that can be used with entity body data.
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Text.Encoding">System.Text.Encoding</a> that contains the encoding that can be used with the entity body data.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.HttpListenerRequest.ContentEncoding:Remarks">
@ -827,7 +827,7 @@
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.Net.HttpListenerRequest.ContentLength64:Value">
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int64">long</a> that contains the value of the Content-Length entity-header field.
<tt>-1</tt> if the size is not known.
The value is a number of bytes in the entity body data. <tt>-1</tt> if the size is not known.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.Net.HttpListenerRequest.ContentLength64:Remarks">

View File

@ -223,24 +223,24 @@
<a href="./Cookie.html">Cookie</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Provides a set of properties and methods to use to manage the HTTP Cookie.
</td>
</tr>
<tr valign="top">
<td>
<a href="./CookieCollection.html">CookieCollection</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Provides a collection container for instances of the <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class.
</td>
</tr>
<tr valign="top">
<td>
<a href="./CookieException.html">CookieException</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
The exception that is thrown when a <a href="../WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> gets an error.
</td>
</tr>
<tr valign="top">
<td>
@ -279,7 +279,7 @@
<a href="./HttpListenerRequest.html">HttpListenerRequest</a>
</td>
<td>
Provides access to the HTTP request objects sent to a <a href="../WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
Provides access to a request to a <a href="../WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
</td>
</tr>
<tr valign="top">
@ -287,8 +287,8 @@
<a href="./HttpListenerResponse.html">HttpListenerResponse</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Provides access to a response to a request being processed by a <a href="../WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
</td>
</tr>
<tr valign="top">
<td>

View File

@ -217,8 +217,8 @@
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="T:WebSocketSharp.Server.HttpRequestEventArgs:Docs:Remarks">
An HTTP request event occurs when a <a href="../WebSocketSharp.Server/HttpServer.html">WebSocketSharp.Server.HttpServer</a> instance receives an HTTP request.
If you want to get the HTTP request objects, you should access the <a href="javascript:alert(&quot;Documentation not found.&quot;)">ResponseEventArgs.Request</a> property.
If you want to get the HTTP response objects to send, you should access the <a href="javascript:alert(&quot;Documentation not found.&quot;)">ResponseEventArgs.Response</a> property.
If you want to get the HTTP request objects, you should access the <a href="../WebSocketSharp.Server/HttpRequestEventArgs.html#P:WebSocketSharp.Server.HttpRequestEventArgs.Request">HttpRequestEventArgs.Request</a> property.
If you want to get the HTTP response objects to send, you should access the <a href="../WebSocketSharp.Server/HttpRequestEventArgs.html#P:WebSocketSharp.Server.HttpRequestEventArgs.Response">HttpRequestEventArgs.Response</a> property.
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="T:WebSocketSharp.Server.HttpRequestEventArgs:Docs:Version Information">

View File

@ -217,8 +217,8 @@
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="T:WebSocketSharp.CloseEventArgs:Docs:Remarks">
The <a href="../WebSocketSharp/WebSocket.html#E:WebSocketSharp.WebSocket.OnClose">WebSocket.OnClose</a> event occurs when the WebSocket receives a close control frame or
the <tt>WebSocket.Close</tt> method is called. If you want to get the reason for closure, you should access the <a href="../WebSocketSharp/CloseEventArgs.html#P:WebSocketSharp.CloseEventArgs.Code">CloseEventArgs.Code</a> or
<a href="../WebSocketSharp/CloseEventArgs.html#P:WebSocketSharp.CloseEventArgs.Reason">CloseEventArgs.Reason</a> properties.
the <tt>WebSocket.Close</tt> method is called. If you want to get the reason for closure, you should access
the <a href="../WebSocketSharp/CloseEventArgs.html#P:WebSocketSharp.CloseEventArgs.Code">CloseEventArgs.Code</a> or <a href="../WebSocketSharp/CloseEventArgs.html#P:WebSocketSharp.CloseEventArgs.Reason">CloseEventArgs.Reason</a> properties.
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="T:WebSocketSharp.CloseEventArgs:Docs:Version Information">
@ -299,7 +299,7 @@
<i>
<a href="../WebSocketSharp/Opcode.html">Opcode</a>
</i>.
Gets the type of received data.
Gets the type of the received data.
(<i>Inherited from <a href="../WebSocketSharp/MessageEventArgs.html">MessageEventArgs</a>.</i>)</td>
</tr>
<tr valign="top">
@ -313,7 +313,7 @@
<i>
<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>
</i>.
Indicates whether the connection closed cleanly or not.
Indicates whether the WebSocket connection closed cleanly.
</td>
</tr>
</table>
@ -397,13 +397,13 @@
<h3 id="P:WebSocketSharp.CloseEventArgs.WasClean">WasClean Property</h3>
<blockquote id="P:WebSocketSharp.CloseEventArgs.WasClean:member">
<p class="Summary">
Indicates whether the connection closed cleanly or not.
Indicates whether the WebSocket connection closed cleanly.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>WasClean</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.CloseEventArgs.WasClean:Value">
<tt>true</tt> if the connection closed cleanly; otherwise, <tt>false</tt>.
<tt>true</tt> if the WebSocket connection closed cleanly; otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.CloseEventArgs.WasClean:Remarks">

View File

@ -251,6 +251,18 @@
<a href="#M:WebSocketSharp.Ext.AcceptWebSocketAsync(System.Net.Sockets.TcpListener,System.Boolean,System.Action{WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext})">AcceptWebSocketAsync</a>
</b>(<i>this</i> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Net.Sockets.TcpListener">System.Net.Sockets.TcpListener</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Action`1">Action&lt;WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext&gt;</a>)<blockquote>
Accepts a WebSocket connection asynchronously by the <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Net.Sockets.TcpListener">System.Net.Sockets.TcpListener</a>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
<div>static </div>
</td>
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Ext.Contains(System.String,System.Char[])">Contains</a>
</b>(<i>this</i> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <b>params</b> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>[])<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a></nobr><blockquote>
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> contains any of characters
in the specified array of <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>.
</blockquote></td>
</tr>
<tr valign="top">
@ -384,6 +396,17 @@
<a href="#M:WebSocketSharp.Ext.IsEmpty(System.String)">IsEmpty</a>
</b>(<i>this</i> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>)<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a></nobr><blockquote>
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> is a <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>.
</blockquote></td>
</tr>
<tr valign="top">
<td>
<div>static </div>
</td>
<td colspan="2">
<b>
<a href="#M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char)">IsEnclosedIn</a>
</b>(<i>this</i> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>)<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a></nobr><blockquote>
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> is enclosed in the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>.
</blockquote></td>
</tr>
<tr valign="top">
@ -848,6 +871,44 @@
<b>Namespace: </b>WebSocketSharp<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
<hr size="1" />
</blockquote>
<h3 id="M:WebSocketSharp.Ext.Contains(System.String,System.Char[])">Contains Method</h3>
<blockquote id="M:WebSocketSharp.Ext.Contains(System.String,System.Char[]):member">
<p class="Summary">
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> contains any of characters
in the specified array of <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public static <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>Contains</b> (<i>this</i> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> str, <b>params</b> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>[] chars)</div>
<h4 class="Subsection">Parameters</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Ext.Contains(System.String,System.Char[]):Parameters">
<dl>
<dt>
<i>str</i>
</dt>
<dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> to test.
</dd>
<dt>
<i>chars</i>
</dt>
<dd>
An array of <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a> that contains characters to find.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Ext.Contains(System.String,System.Char[]):Returns">
<tt>true</tt> if <i>str</i> contains any of <i>chars</i>; otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Ext.Contains(System.String,System.Char[]):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="M:WebSocketSharp.Ext.Contains(System.String,System.Char[]):Version Information">
<b>Namespace: </b>WebSocketSharp<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
<hr size="1" />
</blockquote>
<h3 id="M:WebSocketSharp.Ext.Emit(System.EventHandler,System.Object,System.EventArgs)">Emit Method</h3>
<blockquote id="M:WebSocketSharp.Ext.Emit(System.EventHandler,System.Object,System.EventArgs):member">
<p class="Summary">
@ -1302,7 +1363,7 @@
</blockquote>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Ext.IsEmpty(System.String):Returns">
<tt>true</tt> if the <i>value</i> parameter is a <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>; otherwise, <tt>false</tt>.
<tt>true</tt> if <i>value</i> is <a href="http://www.go-mono.com/docs/monodoc.ashx?link=F:System.String.Empty">string.Empty</a>; otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Ext.IsEmpty(System.String):Remarks">
@ -1313,6 +1374,43 @@
<b>Namespace: </b>WebSocketSharp<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
<hr size="1" />
</blockquote>
<h3 id="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char)">IsEnclosedIn Method</h3>
<blockquote id="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char):member">
<p class="Summary">
Determines whether the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> is enclosed in the specified <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a>.
</p>
<h2>Syntax</h2>
<div class="Signature">public static <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a> <b>IsEnclosedIn</b> (<i>this</i> <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> str, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a> c)</div>
<h4 class="Subsection">Parameters</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char):Parameters">
<dl>
<dt>
<i>str</i>
</dt>
<dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> to test.
</dd>
<dt>
<i>c</i>
</dt>
<dd>
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Char">char</a> that contains character to find.
</dd>
</dl>
</blockquote>
<h4 class="Subsection">Returns</h4>
<blockquote class="SubsectionBox" id="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char):Returns">
<tt>true</tt> if <i>str</i> is enclosed in <i>c</i>; otherwise, <tt>false</tt>.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char):Remarks">
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</div>
<h2 class="Section">Requirements</h2>
<div class="SectionBox" id="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char):Version Information">
<b>Namespace: </b>WebSocketSharp<br /><b>Assembly: </b>websocket-sharp (in websocket-sharp.dll)</div>
<hr size="1" />
</blockquote>
<h3 id="M:WebSocketSharp.Ext.IsHostOrder(WebSocketSharp.ByteOrder)">IsHostOrder Method</h3>
<blockquote id="M:WebSocketSharp.Ext.IsHostOrder(WebSocketSharp.ByteOrder):member">
<p class="Summary">

View File

@ -271,7 +271,7 @@
<i>
<a href="../WebSocketSharp/Opcode.html">Opcode</a>
</i>.
Gets the type of received data.
Gets the type of the received data.
</td>
</tr>
</table>
@ -321,7 +321,7 @@
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> <b>Data</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.MessageEventArgs.Data:Value">
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains a received data.
A <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String">string</a> that contains the received data.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.MessageEventArgs.Data:Remarks">
@ -341,7 +341,7 @@
<div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[] <b>RawData</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.MessageEventArgs.RawData:Value">
An array of <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a> that contains a received data.
An array of <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a> that contains the received data.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.MessageEventArgs.RawData:Remarks">
@ -355,13 +355,13 @@
<h3 id="P:WebSocketSharp.MessageEventArgs.Type">Type Property</h3>
<blockquote id="P:WebSocketSharp.MessageEventArgs.Type:member">
<p class="Summary">
Gets the type of received data.
Gets the type of the received data.
</p>
<h2>Syntax</h2>
<div class="Signature">public <a href="../WebSocketSharp/Opcode.html">Opcode</a> <b>Type</b> { get; }</div>
<h4 class="Subsection">Value</h4>
<blockquote class="SubsectionBox" id="P:WebSocketSharp.MessageEventArgs.Type:Value">
One of the <a href="javascript:alert(&quot;Documentation not found.&quot;)">Frame.Opcode</a> that indicates the type of received data.
One of the <a href="../WebSocketSharp/Opcode.html">WebSocketSharp.Opcode</a> values that indicates the type of the received data.
</blockquote>
<h2 class="Section">Remarks</h2>
<div class="SectionBox" id="P:WebSocketSharp.MessageEventArgs.Type:Remarks">

View File

@ -315,24 +315,24 @@
<a href="WebSocketSharp.Net/Cookie.html">Cookie</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Provides a set of properties and methods to use to manage the HTTP Cookie.
</td>
</tr>
<tr valign="top">
<td>
<a href="WebSocketSharp.Net/CookieCollection.html">CookieCollection</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Provides a collection container for instances of the <a href="./WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> class.
</td>
</tr>
<tr valign="top">
<td>
<a href="WebSocketSharp.Net/CookieException.html">CookieException</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
The exception that is thrown when a <a href="./WebSocketSharp.Net/Cookie.html">WebSocketSharp.Net.Cookie</a> gets an error.
</td>
</tr>
<tr valign="top">
<td>
@ -371,7 +371,7 @@
<a href="WebSocketSharp.Net/HttpListenerRequest.html">HttpListenerRequest</a>
</td>
<td>
Provides access to the HTTP request objects sent to a <a href="./WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
Provides access to a request to a <a href="./WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
</td>
</tr>
<tr valign="top">
@ -379,8 +379,8 @@
<a href="WebSocketSharp.Net/HttpListenerResponse.html">HttpListenerResponse</a>
</td>
<td>
<span class="NotEntered">Documentation for this section has not yet been entered.</span>
</td>
Provides access to a response to a request being processed by a <a href="./WebSocketSharp.Net/HttpListener.html">WebSocketSharp.Net.HttpListener</a> instance.
</td>
</tr>
<tr valign="top">
<td>

View File

@ -9,8 +9,12 @@
</Base>
<Interfaces />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>
Provides a set of properties and methods to use to manage the HTTP Cookie.
</summary>
<remarks>
The Cookie class cannot be inherited.
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
@ -19,7 +23,9 @@
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -32,10 +38,41 @@
<Parameter Name="value" Type="System.String" />
</Parameters>
<Docs>
<param name="name">To be added.</param>
<param name="value">To be added.</param>
<summary>To be added.</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the Name of the cookie.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the Value of the cookie.
</param>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class
with the specified <paramref name="name" /> and <paramref name="value" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="name" /> contains an invalid character.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> is <see langword="null" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> contains a string not enclosed in double quotes
that contains an invalid character.
</para>
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
@ -48,11 +85,44 @@
<Parameter Name="path" Type="System.String" />
</Parameters>
<Docs>
<param name="name">To be added.</param>
<param name="value">To be added.</param>
<param name="path">To be added.</param>
<summary>To be added.</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the Name of the cookie.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the Value of the cookie.
</param>
<param name="path">
A <see cref="T:System.String" /> that contains the value of the Path attribute of the cookie.
</param>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class
with the specified <paramref name="name" />, <paramref name="value" /> and <paramref name="path" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="name" /> contains an invalid character.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> is <see langword="null" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> contains a string not enclosed in double quotes
that contains an invalid character.
</para>
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
@ -66,12 +136,48 @@
<Parameter Name="domain" Type="System.String" />
</Parameters>
<Docs>
<param name="name">To be added.</param>
<param name="value">To be added.</param>
<param name="path">To be added.</param>
<param name="domain">To be added.</param>
<summary>To be added.</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the Name of the cookie.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the Value of the cookie.
</param>
<param name="path">
A <see cref="T:System.String" /> that contains the value of the Path attribute of the cookie.
</param>
<param name="domain">
A <see cref="T:System.String" /> that contains the value of the Domain attribute of the cookie.
</param>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.Cookie" /> class
with the specified <paramref name="name" />, <paramref name="value" />,
<paramref name="path" /> and <paramref name="domain" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="name" /> contains an invalid character.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> is <see langword="null" />.
</para>
<para>
- or -
</para>
<para>
<paramref name="value" /> contains a string not enclosed in double quotes
that contains an invalid character.
</para>
</exception>
</Docs>
</Member>
<Member MemberName="Comment">
@ -82,8 +188,12 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the Comment attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a comment to document intended use of the cookie.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -95,8 +205,13 @@
<ReturnType>System.Uri</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the CommentURL attribute of the cookie.
</summary>
<value>
A <see cref="T:System.Uri" /> that contains a URI that provides the comment
to document intended use of the cookie.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -108,8 +223,14 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets a value indicating whether the client discards the cookie unconditionally
when the client terminates.
</summary>
<value>
<c>true</c> if the client discards the cookie unconditionally when the client terminates;
otherwise, <c>false</c>. The default is <c>false</c>.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -121,25 +242,36 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the Domain attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a URI for which the cookie is valid.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="C#" Value="public override bool Equals (object obj);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" />
<MemberSignature Language="C#" Value="public override bool Equals (object comparand);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object comparand) cil managed" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
<Parameter Name="comparand" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<param name="comparand">
An <see cref="T:System.Object" /> to compare with the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</param>
<summary>
Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</summary>
<returns>
<c>true</c> if the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:WebSocketSharp.Net.Cookie" />;
otherwise, <c>false</c>.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -151,8 +283,12 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets a value indicating whether the cookie has expired.
</summary>
<value>
<c>true</c> if the cookie has expired; otherwise, <c>false</c>.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -164,8 +300,12 @@
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the Expires attribute of the cookie.
</summary>
<value>
A <see cref="T:System.DateTime" /> that contains the date and time at which the cookie expires.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -178,8 +318,12 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<summary>
Serves as a hash function for a <see cref="T:WebSocketSharp.Net.Cookie" /> object.
</summary>
<returns>
An <see cref="T:System.Int32" /> that contains a hash code for this instance.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -191,8 +335,12 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets a value indicating non-HTTP APIs can access the cookie.
</summary>
<value>
<c>true</c> if non-HTTP APIs can not access the cookie; otherwise, <c>false</c>.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -204,9 +352,24 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the Name of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains the Name of the cookie.
</value>
<remarks>To be added.</remarks>
<exception cref="T:WebSocketSharp.Net.CookieException">
<para>
The value specified for a set operation is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</para>
<para>
- or -
</para>
<para>
The value specified for a set operation contains an invalid character.
</para>
</exception>
</Docs>
</Member>
<Member MemberName="Path">
@ -217,8 +380,13 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the Path attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a subset of URI on the origin server
to which the cookie applies.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -230,9 +398,16 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the Port attribute of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains a list of the TCP ports to which the cookie applies.
</value>
<remarks>To be added.</remarks>
<exception cref="T:WebSocketSharp.Net.CookieException">
The value specified for a set operation could not be parsed or is not enclosed in double quotes.
</exception>
</Docs>
</Member>
<Member MemberName="Secure">
@ -243,9 +418,17 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>
Gets or sets a value indicating whether the security level of the cookie is secure.
</summary>
<value>
<c>true</c> if the security level of the cookie is secure; otherwise, <c>false</c>.
The default is <c>false</c>.
</value>
<remarks>
When this property is <c>true</c>, the cookie may be included in the HTTP request
only if the request is transmitted over the HTTPS.
</remarks>
</Docs>
</Member>
<Member MemberName="TimeStamp">
@ -256,8 +439,12 @@
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets the time when the cookie was issued.
</summary>
<value>
A <see cref="T:System.DateTime" /> that contains the time when the cookie was issued.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -270,9 +457,15 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>
Returns a <see cref="T:System.String" /> that represents the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</summary>
<returns>
A <see cref="T:System.String" /> that represents the current <see cref="T:WebSocketSharp.Net.Cookie" />.
</returns>
<remarks>
This method returns a <see cref="T:System.String" /> to use to send an HTTP Cookie to an origin server.
</remarks>
</Docs>
</Member>
<Member MemberName="Value">
@ -283,8 +476,12 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the Value of the cookie.
</summary>
<value>
A <see cref="T:System.String" /> that contains the Value of the cookie.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -296,9 +493,17 @@
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the value of the Version attribute of the cookie.
</summary>
<value>
An <see cref="T:System.Int32" /> that contains the version of the HTTP state management
to which the cookie conforms.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
The value specified for a set operation is less than zero.
</exception>
</Docs>
</Member>
</Members>

View File

@ -13,7 +13,9 @@
</Interface>
</Interfaces>
<Docs>
<summary>To be added.</summary>
<summary>
Provides a collection container for instances of the <see cref="T:WebSocketSharp.Net.Cookie" /> class.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
@ -23,7 +25,9 @@
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.CookieCollection" /> class.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -38,9 +42,16 @@
<Parameter Name="cookie" Type="WebSocketSharp.Net.Cookie" />
</Parameters>
<Docs>
<param name="cookie">To be added.</param>
<summary>To be added.</summary>
<param name="cookie">
A <see cref="T:WebSocketSharp.Net.Cookie" /> to add to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<summary>
Add the specified <see cref="T:WebSocketSharp.Net.Cookie" /> to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookie" /> is <see langword="null" />.
</exception>
</Docs>
</Member>
<Member MemberName="Add">
@ -54,9 +65,16 @@
<Parameter Name="cookies" Type="WebSocketSharp.Net.CookieCollection" />
</Parameters>
<Docs>
<param name="cookies">To be added.</param>
<summary>To be added.</summary>
<param name="cookies">
A <see cref="T:WebSocketSharp.Net.CookieCollection" /> to add to the current <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<summary>
Add the elements of the specified <see cref="T:WebSocketSharp.Net.CookieCollection" /> to the current <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookies" /> is <see langword="null" />.
</exception>
</Docs>
</Member>
<Member MemberName="CopyTo">
@ -71,10 +89,23 @@
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="array">To be added.</param>
<param name="index">To be added.</param>
<summary>To be added.</summary>
<param name="array">
An <see cref="T:System.Array" /> that is the destination of the elements copied from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<param name="index">
An <see cref="T:System.Int32" /> that indicates the zero-based index in <paramref name="array" /> at which copying begins.
</param>
<summary>
Copies the elements of the <see cref="T:WebSocketSharp.Net.CookieCollection" /> to the specified <see cref="T:System.Array" />,
starting at the specified <paramref name="index" /> in the <paramref name="array" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="array" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than zero.
</exception>
</Docs>
</Member>
<Member MemberName="CopyTo">
@ -89,10 +120,23 @@
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="array">To be added.</param>
<param name="index">To be added.</param>
<summary>To be added.</summary>
<param name="array">
An array of <see cref="T:WebSocketSharp.Net.Cookie" /> that is the destination of the elements copied from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</param>
<param name="index">
An <see cref="T:System.Int32" /> that indicates the zero-based index in <paramref name="array" /> at which copying begins.
</param>
<summary>
Copies the elements of the <see cref="T:WebSocketSharp.Net.CookieCollection" /> to the specified array of <see cref="T:WebSocketSharp.Net.Cookie" />,
starting at the specified <paramref name="index" /> in the <paramref name="array" />.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="array" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than zero.
</exception>
</Docs>
</Member>
<Member MemberName="Count">
@ -103,8 +147,12 @@
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets the number of cookies contained in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
An <see cref="T:System.Int32" /> that indicates the number of cookies contained in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -117,8 +165,13 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<summary>
Gets the enumerator to use to iterate through the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<returns>
An instance of an implementation of the <see cref="T:System.Collections.IEnumerator" /> interface
to use to iterate through the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -130,8 +183,13 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets a value indicating whether the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is read-only.
</summary>
<value>
<c>true</c> if the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is read-only; otherwise, <c>false</c>.
The default is <c>true</c>.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -143,8 +201,13 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets a value indicating whether access to the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is thread safe.
</summary>
<value>
<c>true</c> if access to the <see cref="T:WebSocketSharp.Net.CookieCollection" /> is thread safe; otherwise, <c>false</c>.
The default is <c>false</c>.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -159,10 +222,20 @@
<Parameter Name="index" Type="System.Int32" />
</Parameters>
<Docs>
<param name="index">To be added.</param>
<summary>To be added.</summary>
<value>To be added.</value>
<param name="index">
An <see cref="T:System.Int32" /> that is the zero-based index of the <see cref="T:WebSocketSharp.Net.Cookie" /> to find.
</param>
<summary>
Gets the <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="index" /> from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="index" /> in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than zero or <paramref name="index" /> is greater than or
equal to <see cref="P:WebSocketSharp.Net.CookieCollection.Count" />.
</exception>
</Docs>
</Member>
<Member MemberName="Item">
@ -176,10 +249,19 @@
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<param name="name">To be added.</param>
<summary>To be added.</summary>
<value>To be added.</value>
<param name="name">
A <see cref="T:System.String" /> that is the name of the <see cref="T:WebSocketSharp.Net.Cookie" /> to find.
</param>
<summary>
Gets the <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="name" /> from the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.Cookie" /> with the specified <paramref name="name" /> in the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.
</exception>
</Docs>
</Member>
<Member MemberName="SyncRoot">
@ -190,8 +272,12 @@
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets an object to use to synchronize access to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</summary>
<value>
An <see cref="T:System.Object" /> to use to synchronize access to the <see cref="T:WebSocketSharp.Net.CookieCollection" />.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>

View File

@ -9,7 +9,9 @@
</Base>
<Interfaces />
<Docs>
<summary>To be added.</summary>
<summary>
The exception that is thrown when a <see cref="T:WebSocketSharp.Net.Cookie" /> gets an error.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
@ -19,22 +21,31 @@
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.CookieException" /> class.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CookieException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" />
<MemberSignature Language="C#" Value="protected CookieException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.Runtime.Serialization.SerializationInfo serializationInfo, valuetype System.Runtime.Serialization.StreamingContext streamingContext) cil managed" />
<MemberType>Constructor</MemberType>
<Parameters>
<Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" />
<Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" />
<Parameter Name="serializationInfo" Type="System.Runtime.Serialization.SerializationInfo" />
<Parameter Name="streamingContext" Type="System.Runtime.Serialization.StreamingContext" />
</Parameters>
<Docs>
<param name="info">To be added.</param>
<param name="context">To be added.</param>
<summary>To be added.</summary>
<param name="serializationInfo">
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data.
</param>
<param name="streamingContext">
A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the contextual information about the source or destination.
</param>
<summary>
Initializes a new instance of the <see cref="T:WebSocketSharp.Net.CookieException" /> class
with the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -50,27 +61,39 @@
<Parameter Name="streamingContext" Type="System.Runtime.Serialization.StreamingContext" />
</Parameters>
<Docs>
<param name="serializationInfo">To be added.</param>
<param name="streamingContext">To be added.</param>
<summary>To be added.</summary>
<param name="serializationInfo">
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data.
</param>
<param name="streamingContext">
A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for the serialization.
</param>
<summary>
Populates the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the <see cref="T:WebSocketSharp.Net.CookieException" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.Runtime.Serialization.ISerializable.GetObjectData">
<MemberSignature Language="C#" Value="void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.Serialization.ISerializable.GetObjectData(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" />
<MemberSignature Language="C#" Value="void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.Serialization.ISerializable.GetObjectData(class System.Runtime.Serialization.SerializationInfo serializationInfo, valuetype System.Runtime.Serialization.StreamingContext streamingContext) cil managed" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" />
<Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" />
<Parameter Name="serializationInfo" Type="System.Runtime.Serialization.SerializationInfo" />
<Parameter Name="streamingContext" Type="System.Runtime.Serialization.StreamingContext" />
</Parameters>
<Docs>
<param name="info">To be added.</param>
<param name="context">To be added.</param>
<summary>To be added.</summary>
<param name="serializationInfo">
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data.
</param>
<param name="streamingContext">
A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for the serialization.
</param>
<summary>
Populates the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the <see cref="T:WebSocketSharp.Net.CookieException" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>

View File

@ -10,7 +10,7 @@
<Interfaces />
<Docs>
<summary>
Provides access to the HTTP request objects sent to a <see cref="T:WebSocketSharp.Net.HttpListener" /> instance.
Provides access to a request to a <see cref="T:WebSocketSharp.Net.HttpListener" /> instance.
</summary>
<remarks>
The HttpListenerRequest class cannot be inherited.
@ -98,7 +98,7 @@
Gets the encoding that can be used with the entity body data included in the request.
</summary>
<value>
A <see cref="T:System.Text.Encoding" /> that contains the encoding that can be used with entity body data.
A <see cref="T:System.Text.Encoding" /> that contains the encoding that can be used with the entity body data.
</value>
<remarks>To be added.</remarks>
</Docs>
@ -116,7 +116,7 @@
</summary>
<value>
A <see cref="T:System.Int64" /> that contains the value of the Content-Length entity-header field.
<c>-1</c> if the size is not known.
The value is a number of bytes in the entity body data. <c>-1</c> if the size is not known.
</value>
<remarks>To be added.</remarks>
</Docs>

View File

@ -13,8 +13,12 @@
</Interface>
</Interfaces>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>
Provides access to a response to a request being processed by a <see cref="T:WebSocketSharp.Net.HttpListener" /> instance.
</summary>
<remarks>
The HttpListenerResponse class cannot be inherited.
</remarks>
</Docs>
<Members>
<Member MemberName="Abort">
@ -26,7 +30,9 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<summary>
Closes the connection to the client without sending a response.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -42,10 +48,23 @@
<Parameter Name="value" Type="System.String" />
</Parameters>
<Docs>
<param name="name">To be added.</param>
<param name="value">To be added.</param>
<summary>To be added.</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the name of the HTTP header to add.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the value of the HTTP header to add.
</param>
<summary>
Adds the specified HTTP header <paramref name="name" /> and <paramref name="value" /> to
the headers for this response.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
The length of <paramref name="value" /> is greater than 65,535 characters.
</exception>
</Docs>
</Member>
<Member MemberName="AppendCookie">
@ -59,9 +78,16 @@
<Parameter Name="cookie" Type="WebSocketSharp.Net.Cookie" />
</Parameters>
<Docs>
<param name="cookie">To be added.</param>
<summary>To be added.</summary>
<param name="cookie">
A <see cref="T:WebSocketSharp.Net.Cookie" /> to add to the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" />.
</param>
<summary>
Adds the specified <see cref="T:WebSocketSharp.Net.Cookie" /> to the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" /> sent with the response.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookie" /> is <see langword="null" />.
</exception>
</Docs>
</Member>
<Member MemberName="AppendHeader">
@ -76,10 +102,22 @@
<Parameter Name="value" Type="System.String" />
</Parameters>
<Docs>
<param name="name">To be added.</param>
<param name="value">To be added.</param>
<summary>To be added.</summary>
<param name="name">
A <see cref="T:System.String" /> that contains the name of the HTTP header to append <paramref name="value" /> to.
</param>
<param name="value">
A <see cref="T:System.String" /> that contains the value to append to the HTTP header.
</param>
<summary>
Appends a <paramref name="value" /> to the specified HTTP header sent with the response.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
The length of <paramref name="value" /> is greater than 65,535 characters.
</exception>
</Docs>
</Member>
<Member MemberName="Close">
@ -91,7 +129,10 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<summary>
Sends the response to the client and releases the resources associated with
the <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> instance.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -107,10 +148,23 @@
<Parameter Name="willBlock" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="responseEntity">To be added.</param>
<param name="willBlock">To be added.</param>
<summary>To be added.</summary>
<param name="responseEntity">
An array of <see cref="T:System.Byte" /> that contains the response entity body data.
</param>
<param name="willBlock">
<c>true</c> if this method blocks execution while flushing the stream to the client; otherwise, <c>false</c>.
</param>
<summary>
Sends the response with the specified array of <see cref="T:System.Byte" /> to the client and
releases the resources associated with the <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> instance.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="responseEntity" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
</Docs>
</Member>
<Member MemberName="ContentEncoding">
@ -121,9 +175,19 @@
<ReturnType>System.Text.Encoding</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the encoding that can be used with the entity body data included in the response.
</summary>
<value>
A <see cref="T:System.Text.Encoding" /> that contains the encoding that can be used with the entity body data.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
</Docs>
</Member>
<Member MemberName="ContentLength64">
@ -134,9 +198,23 @@
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the size of the entity body data included in the response.
</summary>
<value>
A <see cref="T:System.Int64" /> that contains the value of the Content-Length entity-header field.
The value is a number of bytes in the entity body data.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
The value specified for a set operation is less than zero.
</exception>
</Docs>
</Member>
<Member MemberName="ContentType">
@ -147,9 +225,26 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the media type of the entity body included in the response.
</summary>
<value>
The type of the content.
A <see cref="T:System.String" /> that contains the value of the Content-Type entity-header field.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentNullException">
The value specified for a set operation is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
The value specified for a set operation is a <see cref="F:System.String.Empty" />.
</exception>
</Docs>
</Member>
<Member MemberName="Cookies">
@ -160,8 +255,12 @@
<ReturnType>WebSocketSharp.Net.CookieCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the cookies returned with the response.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.CookieCollection" /> that contains the cookies returned with the response.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -176,8 +275,12 @@
<Parameter Name="templateResponse" Type="WebSocketSharp.Net.HttpListenerResponse" />
</Parameters>
<Docs>
<param name="templateResponse">To be added.</param>
<summary>To be added.</summary>
<param name="templateResponse">
A <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> to copy.
</param>
<summary>
Copies properties from the specified <see cref="T:WebSocketSharp.Net.HttpListenerResponse" /> to this response.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -189,8 +292,12 @@
<ReturnType>WebSocketSharp.Net.WebHeaderCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the HTTP headers returned to the client.
</summary>
<value>
A <see cref="T:WebSocketSharp.Net.WebHeaderCollection" /> that contains the HTTP headers returned to the client.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -202,9 +309,20 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets a value indicating whether the server requests a persistent connection.
</summary>
<value>
<c>true</c> if the server requests a persistent connection; otherwise, <c>false</c>.
The default is <c>true</c>.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
</Docs>
</Member>
<Member MemberName="OutputStream">
@ -215,9 +333,16 @@
<ReturnType>System.IO.Stream</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets a <see cref="T:System.IO.Stream" /> to use to write the entity body data.
</summary>
<value>
A <see cref="T:System.IO.Stream" /> to use to write the entity body data.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
</Docs>
</Member>
<Member MemberName="ProtocolVersion">
@ -228,9 +353,26 @@
<ReturnType>System.Version</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the HTTP version used in the response.
</summary>
<value>
A <see cref="T:System.Version" /> that contains the HTTP version used in the response.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentNullException">
The value specified for a set operation is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
The value specified for a set operation does not have its <see cref="P:System.Version.Major">Major</see> property set to 1 or
does not have its <see cref="P:System.Version.Minor">Minor</see> property set to either 0 or 1.
</exception>
</Docs>
</Member>
<Member MemberName="Redirect">
@ -244,8 +386,12 @@
<Parameter Name="url" Type="System.String" />
</Parameters>
<Docs>
<param name="url">To be added.</param>
<summary>To be added.</summary>
<param name="url">
A <see cref="T:System.String" /> that contains a URL to redirect the client's request to.
</param>
<summary>
Configures the response to redirect the client's request to the specified <paramref name="url" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -257,9 +403,22 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the URL to which the client is redirected to locate a requested resource.
</summary>
<value>
A <see cref="T:System.String" /> that contains the value of the Location response-header field.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.ArgumentException">
The value specified for a set operation is a <see cref="F:System.String.Empty" />.
</exception>
</Docs>
</Member>
<Member MemberName="SendChunked">
@ -270,9 +429,19 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets a value indicating whether the response uses the chunked transfer encoding.
</summary>
<value>
<c>true</c> if the response uses the chunked transfer encoding; otherwise, <c>false</c>.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
</Docs>
</Member>
<Member MemberName="SetCookie">
@ -286,9 +455,20 @@
<Parameter Name="cookie" Type="WebSocketSharp.Net.Cookie" />
</Parameters>
<Docs>
<param name="cookie">To be added.</param>
<summary>To be added.</summary>
<param name="cookie">
A <see cref="T:WebSocketSharp.Net.Cookie" /> to set.
</param>
<summary>
Adds or updates a <see cref="T:WebSocketSharp.Net.Cookie" /> in the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" /> sent with the response.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="cookie" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
<paramref name="cookie" /> already exists in the <see cref="P:WebSocketSharp.Net.HttpListenerResponse.Cookies" /> and
could not be replaced.
</exception>
</Docs>
</Member>
<Member MemberName="StatusCode">
@ -299,9 +479,23 @@
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets the HTTP status code returned to the client.
</summary>
<value>
An <see cref="T:System.Int32" /> that indicates the HTTP status code for the response to the request.
The default is <see cref="F:WebSocketSharp.Net.HttpStatusCode.OK" />.
</value>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">
This object is closed.
</exception>
<exception cref="T:System.InvalidOperationException">
The response has been sent already.
</exception>
<exception cref="T:System.Net.ProtocolViolationException">
The value specified for a set operation is invalid. Valid values are between 100 and 999.
</exception>
</Docs>
</Member>
<Member MemberName="StatusDescription">
@ -312,8 +506,12 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<summary>
Gets or sets a description of the HTTP status code returned to the client.
</summary>
<value>
A <see cref="T:System.String" /> that contains a description of the HTTP status code returned to the client.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
@ -326,7 +524,9 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<summary>
Releases all resource used by the <see cref="T:WebSocketSharp.Net.HttpListenerResponse" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>

View File

@ -14,8 +14,8 @@
</summary>
<remarks>
An HTTP request event occurs when a <see cref="T:WebSocketSharp.Server.HttpServer" /> instance receives an HTTP request.
If you want to get the HTTP request objects, you should access the <see cref="!:ResponseEventArgs.Request" /> property.
If you want to get the HTTP response objects to send, you should access the <see cref="!:ResponseEventArgs.Response" /> property.
If you want to get the HTTP request objects, you should access the <see cref="P:WebSocketSharp.Server.HttpRequestEventArgs.Request" /> property.
If you want to get the HTTP response objects to send, you should access the <see cref="P:WebSocketSharp.Server.HttpRequestEventArgs.Response" /> property.
</remarks>
</Docs>
<Members>

View File

@ -14,8 +14,8 @@
</summary>
<remarks>
The <see cref="E:WebSocketSharp.WebSocket.OnClose" /> event occurs when the WebSocket receives a close control frame or
the <c>WebSocket.Close</c> method is called. If you want to get the reason for closure, you should access the <see cref="P:WebSocketSharp.CloseEventArgs.Code" /> or
<see cref="P:WebSocketSharp.CloseEventArgs.Reason" /> properties.
the <c>WebSocket.Close</c> method is called. If you want to get the reason for closure, you should access
the <see cref="P:WebSocketSharp.CloseEventArgs.Code" /> or <see cref="P:WebSocketSharp.CloseEventArgs.Reason" /> properties.
</remarks>
</Docs>
<Members>
@ -62,10 +62,10 @@
</ReturnValue>
<Docs>
<summary>
Indicates whether the connection closed cleanly or not.
Indicates whether the WebSocket connection closed cleanly.
</summary>
<value>
<c>true</c> if the connection closed cleanly; otherwise, <c>false</c>.
<c>true</c> if the WebSocket connection closed cleanly; otherwise, <c>false</c>.
</value>
<remarks>To be added.</remarks>
</Docs>

View File

@ -76,6 +76,40 @@
</exception>
</Docs>
</Member>
<Member MemberName="Contains">
<MemberSignature Language="C#" Value="public static bool Contains (this string str, char[] chars);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Contains(string str, char[] chars) cil managed" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="str" Type="System.String" RefType="this" />
<Parameter Name="chars" Type="System.Char[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="str">
A <see cref="T:System.String" /> to test.
</param>
<param name="chars">
An array of <see cref="T:System.Char" /> that contains characters to find.
</param>
<summary>
Determines whether the specified <see cref="T:System.String" /> contains any of characters
in the specified array of <see cref="T:System.Char" />.
</summary>
<returns>
<c>true</c> if <paramref name="str" /> contains any of <paramref name="chars" />; otherwise, <c>false</c>.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Emit">
<MemberSignature Language="C#" Value="public static void Emit (this EventHandler eventHandler, object sender, EventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void Emit(class System.EventHandler eventHandler, object sender, class System.EventArgs e) cil managed" />
@ -403,7 +437,34 @@
Determines whether the specified <see cref="T:System.String" /> is a <see cref="F:System.String.Empty" />.
</summary>
<returns>
<c>true</c> if the <paramref name="value" /> parameter is a <see cref="F:System.String.Empty" />; otherwise, <c>false</c>.
<c>true</c> if <paramref name="value" /> is <see cref="F:System.String.Empty" />; otherwise, <c>false</c>.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsEnclosedIn">
<MemberSignature Language="C#" Value="public static bool IsEnclosedIn (this string str, char c);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool IsEnclosedIn(string str, char c) cil managed" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="str" Type="System.String" RefType="this" />
<Parameter Name="c" Type="System.Char" />
</Parameters>
<Docs>
<param name="str">
A <see cref="T:System.String" /> to test.
</param>
<param name="c">
A <see cref="T:System.Char" /> that contains character to find.
</param>
<summary>
Determines whether the specified <see cref="T:System.String" /> is enclosed in the specified <see cref="T:System.Char" />.
</summary>
<returns>
<c>true</c> if <paramref name="str" /> is enclosed in <paramref name="c" />; otherwise, <c>false</c>.
</returns>
<remarks>To be added.</remarks>
</Docs>

View File

@ -31,7 +31,7 @@
Gets the received data as a <see cref="T:System.String" />.
</summary>
<value>
A <see cref="T:System.String" /> that contains a received data.
A <see cref="T:System.String" /> that contains the received data.
</value>
<remarks>To be added.</remarks>
</Docs>
@ -48,7 +48,7 @@
Gets the received data as an array of <see cref="T:System.Byte" />.
</summary>
<value>
An array of <see cref="T:System.Byte" /> that contains a received data.
An array of <see cref="T:System.Byte" /> that contains the received data.
</value>
<remarks>To be added.</remarks>
</Docs>
@ -62,10 +62,10 @@
</ReturnValue>
<Docs>
<summary>
Gets the type of received data.
Gets the type of the received data.
</summary>
<value>
One of the <see cref="!:WebSocketSharp.Frame.Opcode" /> that indicates the type of received data.
One of the <see cref="T:WebSocketSharp.Opcode" /> values that indicates the type of the received data.
</value>
<remarks>To be added.</remarks>
</Docs>

View File

@ -1,6 +1,6 @@
<Overview>
<Assemblies>
<Assembly Name="websocket-sharp" Version="1.0.2.29673">
<Assembly Name="websocket-sharp" Version="1.0.2.29585">
<AssemblyPublicKey>[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 11 00 00 00 29 17 fb 89 fe c3 91 f7 2b cb 8b e2 61 d2 3f 05 93 6d 65 a8 9e 63 72 a6 f5 d5 2c f2 9d 20 fa 0b c0 70 6a f6 88 7e 8b 90 3f 39 f5 76 c8 48 e0 bb 7b b2 7b ed d3 10 a7 1a 0f 70 98 0f 7f f4 4b 53 09 d2 a5 ef 36 c3 56 b4 aa f0 91 72 63 25 07 89 e0 93 3e 3f 2e f2 b9 73 0e 12 15 5d 43 56 c3 f4 70 a5 89 fe f7 f6 ac 3e 77 c2 d8 d0 84 91 f4 0c d1 f3 8e dc c3 c3 b8 38 3d 0c bf 17 de 20 78 c1 ]</AssemblyPublicKey>
<Attributes>
<Attribute>
@ -141,6 +141,42 @@
<Link Type="WebSocketSharp.Ext" Member="M:WebSocketSharp.Ext.AcceptWebSocketAsync(System.Net.Sockets.TcpListener,System.Boolean,System.Action{WebSocketSharp.Net.WebSockets.TcpListenerWebSocketContext})" />
</Member>
</ExtensionMethod>
<ExtensionMethod>
<Targets>
<Target Type="T:System.String" />
</Targets>
<Member MemberName="Contains">
<MemberSignature Language="C#" Value="public static bool Contains (this string str, char[] chars);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Contains(string str, char[] chars) cil managed" />
<MemberType>ExtensionMethod</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="str" Type="System.String" RefType="this" />
<Parameter Name="chars" Type="System.Char[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="str">
A <see cref="T:System.String" /> to test.
</param>
<param name="chars">
An array of <see cref="T:System.Char" /> that contains characters to find.
</param>
<summary>
Determines whether the specified <see cref="T:System.String" /> contains any of characters
in the specified array of <see cref="T:System.Char" />.
</summary>
</Docs>
<Link Type="WebSocketSharp.Ext" Member="M:WebSocketSharp.Ext.Contains(System.String,System.Char[])" />
</Member>
</ExtensionMethod>
<ExtensionMethod>
<Targets>
<Target Type="T:System.EventHandler" />
@ -500,6 +536,35 @@
<Link Type="WebSocketSharp.Ext" Member="M:WebSocketSharp.Ext.IsEmpty(System.String)" />
</Member>
</ExtensionMethod>
<ExtensionMethod>
<Targets>
<Target Type="T:System.String" />
</Targets>
<Member MemberName="IsEnclosedIn">
<MemberSignature Language="C#" Value="public static bool IsEnclosedIn (this string str, char c);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool IsEnclosedIn(string str, char c) cil managed" />
<MemberType>ExtensionMethod</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="str" Type="System.String" RefType="this" />
<Parameter Name="c" Type="System.Char" />
</Parameters>
<Docs>
<param name="str">
A <see cref="T:System.String" /> to test.
</param>
<param name="c">
A <see cref="T:System.Char" /> that contains character to find.
</param>
<summary>
Determines whether the specified <see cref="T:System.String" /> is enclosed in the specified <see cref="T:System.Char" />.
</summary>
</Docs>
<Link Type="WebSocketSharp.Ext" Member="M:WebSocketSharp.Ext.IsEnclosedIn(System.String,System.Char)" />
</Member>
</ExtensionMethod>
<ExtensionMethod>
<Targets>
<Target Type="T:WebSocketSharp.ByteOrder" />

Binary file not shown.