首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > topeka

topeka

资 源 简 介

This library is intended for users that want to embed a web server to an existing project. It has a similar sintax to java servlets framework, but simplified. It is programmed in c# using .net framework 2.0. It is also compatible with linux using mono The very basic and simple Hello World using Topeka ``` using Topeka; public class testPage : Servlet { public static void Main(string[] ar) { // Instantiate a server object Server server = new Server(8080); server.start(); } // Override Servlet method doGet to handle requests public override void doGet(Request request, Response response) { // Print Hello World to the client response.println("Hello World!"); } } ``` Then when you start the server you could open a browser and point to http://localhost:8080/testPage and you will get the response from the Server.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.800767s