using System.Net; using Grapevine; [RestResource] public class Hello { // RestRoute tells the server to reply to requests of the given pattern. // "Get": the HTTP-method (normally either "Get" or "Post") // "/hello/world": the path to match. [RestRoute("Get", "/hello/world")] public async Task World(IHttpContext context) { await context.Response.SendResponseAsync("Hello Client"); } }