首页| 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
  • ZS 19分钟前 成为了本站会员

  • . 1天前 成为了本站会员

  • 奋斗 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 一天不玩浑身难受 2天前 成为了本站会员

  • Aloha 2天前 成为了本站会员

  • 嘻嘻嘻 2天前 成为了本站会员

  • maihaoweilai 2天前 成为了本站会员

  • 紫麟鹿 2天前 成为了本站会员

  • 天狼 2天前 成为了本站会员