diff --git a/README.md b/README.md index af02ecd..e2720d0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -
+ /// HttpListener myListener = new HttpListener("http", -1);
+ /// myListener.Start();
+ /// while (true)
+ /// {
+ /// HttpListenerResponse response = null;
+ /// try
+ /// {
+ /// Debug.Print("Waiting for requests");
+ /// HttpListenerContext context = myListener.GetContext();
+ ///
+ /// Status codes indicate categories, as follows:
+ ///1xx -- Informational.
+ ///2xx -- Successful.
+ ///3xx -- Redirection.
+ ///4xx -- Client Error.
+ ///5xx -- Server Error.
+ ///
+ /// Accept: text/plain, text/html
+ ///
+ /// then
+ /// Header-Name: Header-Value\r\n
+ /// Header-Name2: Header-Value2\r\n
+ /// ...
+ /// Header-NameN: Header-ValueN\r\n
+ /// \r\n
+ ///
+ ///
+ /// Header-Name1: Header-Value1\r\n
+ /// Header-Name2: Header-Value2\r\n
+ /// ...
+ /// Header-NameN: Header-ValueN\r\n
+ /// \r\n
+ ///
+ /// The
-or-
The scheme specified in
-or-
-or-
The password specified in
-or-
The host name specified in
+ ///
-or-
The file name specified in
+ ///
-or-
The user name specified in
+ ///
-or-
The host or authority name specified in
+ ///
-or-
The port number specified in
+ ///
-or-
The length of
-or-
The length of the scheme specified in
+ ///
-or-
There is an invalid character sequence in
+ ///
-or-
The MS-DOS path specified in
+ ///
- /// ServerCertificateValidation = certificate => certificate.Error is null
- /// || certificate.Fingerprint == "9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08"
- ///
- ///