CSharpTest.Net
HttpServer Class Members
See Also  Properties  Methods  Events Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Http Namespace : HttpServer Class


Glossary Item Box

The following tables list the members exposed by HttpServer.

Public Constructors

 NameDescription
Public ConstructorHttpServer ConstructorConstructs the HttpServer with a fixed thread-pool size.  
Top

Public Properties

 NameDescription
Public PropertyApplicationPathReturns the path being used to host this server instance, for example return "/root/" when prefixes = "http://*:8080/root"  
Public Propertystatic (Shared in Visual Basic)ContextReturns a thread-static HttpListenerContext of the current http request, or null if there is none.  
Public PropertyShutdownEventExposes a WaitHandle that can be used to signal other threads that the HTTP server is shutting down.  
Top

Public Methods

 NameDescription
Public MethodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.  
Public MethodStartStarts the HttpServer listening on the prefixes supplied. use "http://+:80/" to match any host identifier not already mapped, or "http://*:80/" to match all host identifiers.  
Public MethodStopStops the HTTP server and all worker threads.  
Top

Public Events

 NameDescription
Public EventOnErrorRaised when an unhandled exception occurs, you can use HttpServer.Context to respond to the http client if needed.  
Public EventProcessRequestPerforms the processing of the request on one of the worker threads  
Top

See Also

Generated with Document! X 2011 by Innovasys