├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE.txt ├── README.md ├── config ├── checkstyle.xml └── java.header ├── core ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── squareup │ │ │ └── rack │ │ │ ├── RackApplication.java │ │ │ ├── RackEnvironment.java │ │ │ ├── RackErrors.java │ │ │ ├── RackInput.java │ │ │ ├── RackLogger.java │ │ │ ├── RackResponse.java │ │ │ ├── io │ │ │ ├── ByteArrayBuffer.java │ │ │ ├── TempfileBufferedInputStream.java │ │ │ └── package-info.java │ │ │ ├── jruby │ │ │ ├── JRubyRackApplication.java │ │ │ ├── JRubyRackBodyIterator.java │ │ │ ├── JRubyRackInput.java │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ └── servlet │ │ │ ├── RackEnvironmentBuilder.java │ │ │ ├── RackResponsePropagator.java │ │ │ ├── RackServlet.java │ │ │ └── package-info.java │ └── javadoc │ │ └── overview.html │ └── test │ ├── java │ └── com │ │ └── squareup │ │ └── rack │ │ ├── RackErrorsTest.java │ │ ├── RackInputTest.java │ │ ├── RackLoggerTest.java │ │ ├── SlowByteArrayInputStream.java │ │ ├── io │ │ └── TempfileBufferedInputStreamTest.java │ │ ├── jruby │ │ ├── JRubyRackApplicationTest.java │ │ ├── JRubyRackBodyIteratorTest.java │ │ └── JRubyRackInputTest.java │ │ └── servlet │ │ ├── NullHttpServletRequest.java │ │ ├── RackEnvironmentBuilderTest.java │ │ ├── RackResponsePropagatorTest.java │ │ ├── RackServletTest.java │ │ ├── TestHttpServletRequest.java │ │ └── TestHttpServletRequestTest.java │ └── resources │ └── enumerable_with_close.rb ├── examples ├── dropwizard │ ├── README.md │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── squareup │ │ │ │ └── rack │ │ │ │ └── examples │ │ │ │ └── dropwizard │ │ │ │ ├── ExampleService.java │ │ │ │ ├── health │ │ │ │ └── FakeHealthCheck.java │ │ │ │ └── resources │ │ │ │ └── EmptyResource.java │ │ └── resources │ │ │ ├── application.rb │ │ │ └── config.ru │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── squareup │ │ │ └── rack │ │ │ └── examples │ │ │ └── dropwizard │ │ │ └── ExampleServiceTest.java │ │ └── resources │ │ └── example.yaml ├── guice-servlet │ ├── README.md │ ├── pom.xml │ └── src │ │ └── test │ │ └── java │ │ └── com │ │ └── squareup │ │ └── rack │ │ └── examples │ │ └── guice │ │ └── ExampleServerTest.java └── jetty │ ├── README.md │ ├── pom.xml │ └── src │ └── test │ └── java │ └── com │ └── squareup │ └── rack │ └── examples │ └── jetty │ └── ExampleServerTest.java ├── integration ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── squareup │ │ └── rack │ │ └── integration │ │ └── ExampleServer.java │ └── test │ ├── java │ └── com │ │ └── squareup │ │ └── rack │ │ └── integration │ │ ├── HeaderFlushingTest.java │ │ └── MultiValuedHeadersTest.java │ └── resources │ └── application.rb └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .idea 3 | target 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | 3 | notifications: 4 | email: false -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/README.md -------------------------------------------------------------------------------- /config/checkstyle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/config/checkstyle.xml -------------------------------------------------------------------------------- /config/java.header: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/config/java.header -------------------------------------------------------------------------------- /core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/README.md -------------------------------------------------------------------------------- /core/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/pom.xml -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/RackApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/RackApplication.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/RackEnvironment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/RackEnvironment.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/RackErrors.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/RackErrors.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/RackInput.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/RackInput.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/RackLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/RackLogger.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/RackResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/RackResponse.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/io/ByteArrayBuffer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/io/ByteArrayBuffer.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/io/TempfileBufferedInputStream.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/io/TempfileBufferedInputStream.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/io/package-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/io/package-info.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/jruby/JRubyRackApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/jruby/JRubyRackApplication.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/jruby/JRubyRackBodyIterator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/jruby/JRubyRackBodyIterator.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/jruby/JRubyRackInput.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/jruby/JRubyRackInput.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/jruby/package-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/jruby/package-info.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/package-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/package-info.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/servlet/RackEnvironmentBuilder.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/servlet/RackEnvironmentBuilder.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/servlet/RackResponsePropagator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/servlet/RackResponsePropagator.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/servlet/RackServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/servlet/RackServlet.java -------------------------------------------------------------------------------- /core/src/main/java/com/squareup/rack/servlet/package-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/java/com/squareup/rack/servlet/package-info.java -------------------------------------------------------------------------------- /core/src/main/javadoc/overview.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/main/javadoc/overview.html -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/RackErrorsTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/RackErrorsTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/RackInputTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/RackInputTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/RackLoggerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/RackLoggerTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/SlowByteArrayInputStream.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/SlowByteArrayInputStream.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/io/TempfileBufferedInputStreamTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/io/TempfileBufferedInputStreamTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/jruby/JRubyRackApplicationTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/jruby/JRubyRackApplicationTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/jruby/JRubyRackBodyIteratorTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/jruby/JRubyRackBodyIteratorTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/jruby/JRubyRackInputTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/jruby/JRubyRackInputTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/servlet/NullHttpServletRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/servlet/NullHttpServletRequest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/servlet/RackEnvironmentBuilderTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/servlet/RackEnvironmentBuilderTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/servlet/RackResponsePropagatorTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/servlet/RackResponsePropagatorTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/servlet/RackServletTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/servlet/RackServletTest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/servlet/TestHttpServletRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/servlet/TestHttpServletRequest.java -------------------------------------------------------------------------------- /core/src/test/java/com/squareup/rack/servlet/TestHttpServletRequestTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/java/com/squareup/rack/servlet/TestHttpServletRequestTest.java -------------------------------------------------------------------------------- /core/src/test/resources/enumerable_with_close.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/core/src/test/resources/enumerable_with_close.rb -------------------------------------------------------------------------------- /examples/dropwizard/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/README.md -------------------------------------------------------------------------------- /examples/dropwizard/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/pom.xml -------------------------------------------------------------------------------- /examples/dropwizard/src/main/java/com/squareup/rack/examples/dropwizard/ExampleService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/main/java/com/squareup/rack/examples/dropwizard/ExampleService.java -------------------------------------------------------------------------------- /examples/dropwizard/src/main/java/com/squareup/rack/examples/dropwizard/health/FakeHealthCheck.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/main/java/com/squareup/rack/examples/dropwizard/health/FakeHealthCheck.java -------------------------------------------------------------------------------- /examples/dropwizard/src/main/java/com/squareup/rack/examples/dropwizard/resources/EmptyResource.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/main/java/com/squareup/rack/examples/dropwizard/resources/EmptyResource.java -------------------------------------------------------------------------------- /examples/dropwizard/src/main/resources/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/main/resources/application.rb -------------------------------------------------------------------------------- /examples/dropwizard/src/main/resources/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/main/resources/config.ru -------------------------------------------------------------------------------- /examples/dropwizard/src/test/java/com/squareup/rack/examples/dropwizard/ExampleServiceTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/test/java/com/squareup/rack/examples/dropwizard/ExampleServiceTest.java -------------------------------------------------------------------------------- /examples/dropwizard/src/test/resources/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/dropwizard/src/test/resources/example.yaml -------------------------------------------------------------------------------- /examples/guice-servlet/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/guice-servlet/README.md -------------------------------------------------------------------------------- /examples/guice-servlet/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/guice-servlet/pom.xml -------------------------------------------------------------------------------- /examples/guice-servlet/src/test/java/com/squareup/rack/examples/guice/ExampleServerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/guice-servlet/src/test/java/com/squareup/rack/examples/guice/ExampleServerTest.java -------------------------------------------------------------------------------- /examples/jetty/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/jetty/README.md -------------------------------------------------------------------------------- /examples/jetty/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/jetty/pom.xml -------------------------------------------------------------------------------- /examples/jetty/src/test/java/com/squareup/rack/examples/jetty/ExampleServerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/examples/jetty/src/test/java/com/squareup/rack/examples/jetty/ExampleServerTest.java -------------------------------------------------------------------------------- /integration/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/integration/pom.xml -------------------------------------------------------------------------------- /integration/src/main/java/com/squareup/rack/integration/ExampleServer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/integration/src/main/java/com/squareup/rack/integration/ExampleServer.java -------------------------------------------------------------------------------- /integration/src/test/java/com/squareup/rack/integration/HeaderFlushingTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/integration/src/test/java/com/squareup/rack/integration/HeaderFlushingTest.java -------------------------------------------------------------------------------- /integration/src/test/java/com/squareup/rack/integration/MultiValuedHeadersTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/integration/src/test/java/com/squareup/rack/integration/MultiValuedHeadersTest.java -------------------------------------------------------------------------------- /integration/src/test/resources/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/integration/src/test/resources/application.rb -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/rack-servlet/HEAD/pom.xml --------------------------------------------------------------------------------