request.method(httpRequest.getMethod());
}
private String schemeOf(org.simpleframework.http.Request httpRequest) {
String scheme = httpRequest.getAddress().getScheme();
if (scheme != null) return scheme;
<BUG>return httpRequest.isSecure() ? "https" : "http";
}</BUG>
private void readHeaders(Request request, org.simpleframework.http.Request httpRequest) {
final List<String> names = httpRequest.getNames();
for (String header : names) {

request.method(httpRequest.getMethod());
}
private String schemeOf(org.simpleframework.http.Request httpRequest) {
String scheme = httpRequest.getAddress().getScheme();
if (scheme != null) return scheme;
return httpRequest.isSecure() ? "https" : "http";
}
private String hostOf(org.simpleframework.http.Request httpRequest) {
String header = httpRequest.getValue(HeaderNames.HOST);
return header != null ? Host.parse(header).name() : host;
}
private void readHeaders(Request request, org.simpleframework.http.Request httpRequest) {
final List<String> names = httpRequest.getNames();
for (String header : names) {
