using System; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace EmbedIO { partial class WebServer { /// /// The size, in bytes,of buffers used to transfer contents between streams. /// The value of this constant is the same as the default used by the /// method. For the reasons why this value was chosen, see /// .NET Framework reference source. /// public const int StreamCopyBufferSize = 81920; /// /// The scheme of . /// public const string UriSchemeNull = "null"; /// /// The signature string included in Server response headers. /// public static readonly string Signature = "com.thequux.Stationeers.RemoteControl"; /// /// An that can be used to send UTF-8 responses without a byte order mark (BOM). /// This is the default encoding used by and should be used instead of /// when specifying an encoding for . /// public static readonly Encoding Utf8NoBomEncoding = new UTF8Encoding(false); /// /// The default encoding that is both assumed for requests that do not specify an encoding, /// and used for responses when an encoding is not specified. /// This is the same as . /// public static readonly Encoding DefaultEncoding = Utf8NoBomEncoding; /// /// An which cannot be equal to any HTTP / HTTP URI. /// Used as the default value for non-nullable properties of type . /// public static readonly Uri NullUri = new ("null:"); } }