lib/falcon/server.rb in falcon-0.30.0 vs lib/falcon/server.rb in falcon-0.31.0
- old
+ new
@@ -17,26 +17,26 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
require 'async/http/server'
-require 'async/http/middleware/builder'
-require 'async/http/content_encoding'
+require 'protocol/http/middleware/builder'
+require 'protocol/http/content_encoding'
require_relative 'verbose'
require_relative 'adapters/rewindable'
require_relative 'adapters/rack'
module Falcon
class Server < Async::HTTP::Server
def self.middleware(rack_app, verbose: false)
- Async::HTTP::Middleware.build do
+ ::Protocol::HTTP::Middleware.build do
if verbose
use Verbose
end
- use Async::HTTP::ContentEncoding
+ use ::Protocol::HTTP::ContentEncoding
use Adapters::Rewindable
use Adapters::Rack
run rack_app
end