servlets - Jetty 9 - HttpCompliance.LEGACY -


on jetty 9, trying write handler handle http requests. based on this link need run following code:

import org.eclipse.jetty.http.httpcompliance; import org.eclipse.jetty.server.httpconnectionfactory; import org.eclipse.jetty.server.server; public class onehandler {   public static void main( string[] args ) throws exception   {     server server = new server(8080);     server.getconnectors()[0].getconnectionfactory(httpconnectionfactory.class).sethttpcompliance(httpcompliance.legacy);     server.sethandler(new hellohandler());      server.start();     server.join(); } } 

however, don't know download: org.eclipse.jetty.http.httpcompliance

the httpcompliance class first showed in jetty 9.3.8.v20160314, part of continued cleanup rfc7230 (the http/1.x update obsolete rfc2616) spec, allowing deployments continue limp along using older (looser) rfc2616 spec until such time when no longer have choice use rfc2616 (as rest of web, , interconnected infrastructure has upgraded rfc7230 well)

would encourage not specify httpcompliance @ all, or use rfc7230 settings future proof jetty, http spec, , of various intermediaries encounter upgrading spec support levels.

the entire concept of httpcompliance removed in future release of jetty (the legacy , rfc2616 options along it).

meanwhile, i'll edit documentation remove line example (it should never have been there in first place)

documentation update on own in day or two.

change example @ https://github.com/eclipse/jetty.project/commit/19e52ab9c48edfe1590603a95637457afa32cfc6


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -