@Nullable @Override public HttpMethod method() { final HttpMethod method = this.method; if (method != null) { return method; } final String methodStr = get(HttpHeaderNames.METHOD); if (methodStr == null) { return null; } return this.method = HttpMethod.isSupported(methodStr) ? HttpMethod.valueOf(methodStr) : HttpMethod.UNKNOWN; }
return; if (!HttpMethod.isSupported(method.toString())) { writeErrorResponse(ctx, streamId, HttpResponseStatus.METHOD_NOT_ALLOWED); return;
if (!HttpMethod.isSupported(nettyReq.method().name())) { fail(id, HttpResponseStatus.METHOD_NOT_ALLOWED); return;