Sha256: 2b6e92ae96328ddd3b1decdb09c6725d925ac08eb0ae74f0db0f06498d637cd9

Contents?: true

Size: 875 Bytes

Versions: 1

Compression:

Stored size: 875 Bytes

Contents

# encoding: utf-8

require 'eventmachine'
require 'fiber'
require 'promise'
require 'http/parser'
require 'time'

require 'hatetepe/version'

require 'hatetepe/errors'
require 'hatetepe/support/handlers'
require 'hatetepe/support/message'

require 'hatetepe/promise'
require 'hatetepe/body'
require 'hatetepe/request'
require 'hatetepe/response'

require 'hatetepe/connection/eventmachine'
require 'hatetepe/connection/status'
require 'hatetepe/serializer/encoding'
require 'hatetepe/serializer'

require 'hatetepe/client'
require 'hatetepe/client/keep_alive'
require 'hatetepe/client/timeouts'
require 'hatetepe/server'
require 'hatetepe/server/keep_alive'
require 'hatetepe/server/timeouts'

module Hatetepe
  def self.run
    EM.run do
      Fiber.new do
        yield
        stop
      end.resume
    end
  end

  def self.stop
    EM.stop
    EM.next_tick {}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hatetepe-0.6.0.pre.2 lib/hatetepe.rb