mrblib/mrb_simplehttpserver.rb
def handle_data(io, data)
    request              = @parser.parse_request(data)
    env                  = request_to_env(request)
    status, header, body = @app.call(env)

    create_response(status, header, body.join)
  end
# Parse the HTTP request to pass the env to the shelf app
# and return the HTTP response string.
#
# @param [ BasicSocket ] io   The tcp socket from where to read the data.
# @param [ String ]      data The data reveiced from the socket.
#
# @return [ String ]
Parse the HTTP request to pass the env to the shelf app
and return the HTTP response string.
Parse the HTTP request to pass the env to the shelf app and return the HTTP response string .
def handle_data(io, data)
    request              = @parser.parse_request(data)
    env                  = request_to_env(request)
    status, header, body = @app.call(env)
    create_response(status, header, body.join)
  end
def handle_data ( io , data ) request = @parser . parse_request ( data ) env = request_to_env ( request ) status , header , body = @app . call ( env ) create_response ( status , header , body . join ) end
Parse the HTTP request to pass the env to the shelf app
and return the HTTP response string.
Parse the HTTP request to pass the env to the shelf app and return the HTTP response string .
None
 String 
io
data
data The data reveiced from the socket.
data The data reveiced from the socket .