The HttpListener type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| HttpListener(String) |
Creates an HTTP or HTTPS listener on the standard ports.
| |
| HttpListener(String, Int32) |
Creates an HTTP or HTTPS listener on the specified port.
|
Methods
| Name | Description | |
|---|---|---|
| Abort |
Shuts down the HttpListener object immediately,
discarding all currently queued requests.
| |
| Close |
Shuts down the HttpListener after processing all
currently queued requests.
| |
| GetContext |
Waits for an incoming request and returns when one is received.
| |
| Start |
Allows this instance to receive incoming requests.
| |
| Stop |
Causes this instance to stop receiving incoming requests.
|
Properties
| Name | Description | |
|---|---|---|
| IsListening |
Gets whether the HttpListener service was started
and is waiting for client connections.
| |
| MaximumResponseHeadersLength |
Gets or sets the maximum allowed length of the response headers, in
KB.
|