using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http; namespace ExportMap.Controllers { /** * 测试: * * http://localhost/ExportMap/floatserver/checkout/license */ public class FloatServerController : ApiController { [Route("floatserver/checkout/license")] [AcceptVerbs("GET", "POST")] public void license() { HttpRequest httpRequest = HttpContext.Current.Request; HttpResponse httpResponse = HttpContext.Current.Response; } } }