It was nigh impossible to set a response other than 200 OK before, but now it's easy. This doesn't yet solve the problem of setting an alternative reason string, but that's a very uncommonly used feature.
Reel::Server.new("0.0.0.0", 3000).new do |connection|
# Use an integer status code
connection.respond 204
# Or a status symbol
connection.respond :no_content
end
It was nigh impossible to set a response other than 200 OK before, but now it's easy. This doesn't yet solve the problem of setting an alternative reason string, but that's a very uncommonly used feature.