mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
crystal tool format
This commit is contained in:
parent
6d12d111f4
commit
e6dc494f7e
3 changed files with 4 additions and 3 deletions
|
@ -65,8 +65,8 @@ describe "Kemal::WebSocketHandler" do
|
||||||
|
|
||||||
it "matches correct verb" do
|
it "matches correct verb" do
|
||||||
app = Kemal::Base.new
|
app = Kemal::Base.new
|
||||||
handler = app.websocket_handler
|
handler = app.websocket_handler
|
||||||
handler.next = app.route_handler
|
handler.next = app.route_handler
|
||||||
app.ws "/" { }
|
app.ws "/" { }
|
||||||
app.get "/" { "get" }
|
app.get "/" { "get" }
|
||||||
request = HTTP::Request.new("GET", "/")
|
request = HTTP::Request.new("GET", "/")
|
||||||
|
|
|
@ -68,7 +68,7 @@ class Kemal::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.run(port : Int32? = nil)
|
def self.run(port : Int32? = nil)
|
||||||
run(port) { }
|
run(port) { }
|
||||||
end
|
end
|
||||||
|
|
||||||
# DEPRECATED: This method should be replaced with `#running?`
|
# DEPRECATED: This method should be replaced with `#running?`
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
module Kemal::FileHelpers
|
module Kemal::FileHelpers
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
# Send a file with given path and base the mime-type on the file extension
|
# Send a file with given path and base the mime-type on the file extension
|
||||||
# or default `application/octet-stream` mime_type.
|
# or default `application/octet-stream` mime_type.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue