I have a request as follows:
localhost:8000/location/:01  My code takes as input an HttpContext request.
func(HttpExchange r) {     String area_path = r.getRequestURI(); // Equals string "/location/"  }  How do I parse an HttpExchange correctly so I can pull out the "01" from this path and store it as a variable?
https://stackoverflow.com/questions/66944369/how-do-i-parse-an-httpexchange-request-after-an-ending-slash April 05, 2021 at 02:06AM 
没有评论:
发表评论