Sha256: 97a696d7624fdbabc41a509d16be58c62fa643eb604a07f1e5edb8954aeb56a4

Contents?: true

Size: 456 Bytes

Versions: 19

Compression:

Stored size: 456 Bytes

Contents

# -*- coding: utf-8 -*-
# Author::    TAC (tac@tac42.net)

require 'glint'

server = Glint::Server.new do |port|

  require 'webrick'
  http = WEBrick::HTTPServer.new({
    DocumentRoot: 'spec/htdocs',
    BindAddress:  '127.0.0.1',
    Port:         port,
    AccessLog: []
  })

  trap(:INT)  { http.shutdown }
  trap(:TERM) { http.shutdown }
  http.start
end

server.start

Glint::Server.info[:httpserver] = {
  host: "127.0.0.1",
  port: server.port
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
yasuri-3.3.0 spec/servers/httpserver.rb
yasuri-3.2.0 spec/servers/httpserver.rb
yasuri-3.1.0 spec/servers/httpserver.rb
yasuri-3.0.0 spec/servers/httpserver.rb
yasuri-2.0.13 spec/servers/httpserver.rb
yasuri-2.0.12 spec/servers/httpserver.rb
yasuri-1.9.12 spec/servers/httpserver.rb
yasuri-1.9.11 spec/servers/httpserver.rb
yasuri-2.0.11 spec/servers/httpserver.rb
yasuri-0.0.11 spec/servers/httpserver.rb
yasuri-0.0.10 spec/servers/httpserver.rb
yasuri-0.0.9 spec/servers/httpserver.rb
yasuri-0.0.8 spec/servers/httpserver.rb
yasuri-0.0.7 spec/servers/httpserver.rb
yasuri-0.0.6 spec/servers/httpserver.rb
yasuri-0.0.5 spec/servers/httpserver.rb
yasuri-0.0.4 spec/servers/httpserver.rb
yasuri-0.0.3 spec/servers/httpserver.rb
yasuri-0.0.2 spec/servers/httpserver.rb