coyoteReq.method().setString(method.name());
private static HttpHeaders convertResponse(Response coyoteRes) { final HttpHeaders headers = HttpHeaders.of(HttpStatus.valueOf(coyoteRes.getStatus())); final String contentType = coyoteRes.getContentType(); if (contentType != null && !contentType.isEmpty()) { headers.set(HttpHeaderNames.CONTENT_TYPE, contentType); } final long contentLength = coyoteRes.getBytesWritten(true); // 'true' will trigger flush. final String method = coyoteRes.getRequest().method().toString(); if (!"HEAD".equals(method)) { headers.setLong(HttpHeaderNames.CONTENT_LENGTH, contentLength); } final MimeHeaders cHeaders = coyoteRes.getMimeHeaders(); final int numHeaders = cHeaders.size(); for (int i = 0; i < numHeaders; i++) { final AsciiString name = toHeaderName(cHeaders.getName(i)); if (name == null) { continue; } final String value = toHeaderValue(cHeaders.getValue(i)); if (value == null) { continue; } headers.add(name.toLowerCase(), value); } return headers; }
/** * @return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/** * @return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/* */ public String getMethod() /* */ { /* 1902 */ return this.coyoteRequest.method().toString(); /* */ } /* */
/** * Return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ public String getMethod() { return coyoteRequest.method().toString(); }
/** * Return the HTTP request method used in this Request. */ @Override public String getMethod() { return coyoteRequest.method().toString(); }
public String getMethod() { return req.method().toString(); }
public String getMethod() { return req.method().toString(); }
public String getMethod() { return req.method().toString(); }
public String getMethod() { return req.method().toString(); }
public String getMethod() { return req.method().toString(); }
private Request cloneRequest(Request source) throws IOException { Request dest = new Request(); // Transfer the minimal information required for the copy of the Request // that is passed to the HTTP upgrade process dest.decodedURI().duplicate(source.decodedURI()); dest.method().duplicate(source.method()); dest.getMimeHeaders().duplicate(source.getMimeHeaders()); dest.requestURI().duplicate(source.requestURI()); return dest; } private boolean handleIncompleteRequestLineRead() {