Skip to content

Commit 921436f

Browse files
authored
Add abstract definition for debug_message (#1927)
1 parent 2c1433d commit 921436f

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/lucky/data_response.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
class Lucky::DataResponse < Lucky::Response
3232
DEFAULT_STATUS = 200
3333

34-
getter context, data, content_type, filename, debug_message, headers
34+
getter context, data, content_type, filename, headers
35+
getter debug_message : String?
3536

3637
def initialize(@context : HTTP::Server::Context,
3738
@data : String,

src/lucky/file_response.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
class Lucky::FileResponse < Lucky::Response
4242
DEFAULT_STATUS = 200
4343

44-
getter context, path, filename, debug_message, headers
44+
getter context, path, filename, headers
45+
getter debug_message : String?
4546

4647
def initialize(@context : HTTP::Server::Context,
4748
@path : String,

src/lucky/response.cr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
abstract class Lucky::Response
22
abstract def print
33
abstract def status : Int
4+
abstract def debug_message : String?
45
end

src/lucky/text_response.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
class Lucky::TextResponse < Lucky::Response
1111
DEFAULT_STATUS = 200
1212

13-
getter context, content_type, body, debug_message, enable_cookies
13+
getter context, content_type, body, enable_cookies
14+
getter debug_message : String?
1415

1516
def initialize(@context : HTTP::Server::Context,
1617
@content_type : String,

0 commit comments

Comments
 (0)