Listen to Browser's requests

后端 未结 6 1758
别跟我提以往
别跟我提以往 2020-12-18 17:22

Using the following code:

HttpListener listener = new HttpListener();
//listener.Prefixes.Add(\"http://*:80/\");
listener.Prefixes.Add(\"http://*:8080/\");
l         


        
6条回答
  •  爱一瞬间的悲伤
    2020-12-18 17:43

    I would consider looking into this package http://www.nuget.org/packages/Microsoft.AspNet.WebApi.OwinSelfHost/ It uses HttpListener under the covers and with the WebApi HttpMessageHandler it is very easy to create a proxy.

提交回复
热议问题