我想编写一个c# Http网络服务器。如果URL被请求,我想发送带有CSS和JS的HTML页面到客户端。我该怎么做呢?static void Main(string[] args) HttpListener server = new HttpListener(); // thisst.Write(buffer, 0, buffer.Length);
co
场景
我创建了这个相当简单的“服务器”,它的唯一任务是帮助我理解如何在C#环境中实际使用那些websockets。using (var server = new HttpListener()) server.Prefixes.Add("http://localhost:8080/");
server.Start
我是Node.js和电子的新手。当我使用CefSharp时,我添加了这样的window.AppViewport对象。chromeBrowser.RegisterAsyncJsObject("AppViewport", new AppViewport(this));
在网页中,我像这样使用AppViewport。如何在电子(如C# )中添加javascript对象