Package org.yamcs.http
Class HttpUtils
- java.lang.Object
-
- org.yamcs.http.HttpUtils
-
public class HttpUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.handler.codec.http.FullHttpResponse
CONTINUE_RESPONSE
static io.netty.handler.codec.http.FullHttpResponse
EMPTY_BAD_REQUEST_RESPONSE
-
Constructor Summary
Constructors Constructor Description HttpUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getPathWithoutContext(io.netty.handler.codec.http.HttpRequest req, String contextPath)
Returns the path for the given HTTP request.static String
getUriWithoutContext(io.netty.handler.codec.http.HttpRequest req, String contextPath)
Returns the uri for the given HTTP request, but with the context path removed.
-