Added is_request_method (STRING): BOOLEAN to help users
This commit is contained in:
@@ -111,6 +111,14 @@ feature -- Access: Input
|
|||||||
Result := wgi_request.input
|
Result := wgi_request.input
|
||||||
end
|
end
|
||||||
|
|
||||||
|
feature -- Helper
|
||||||
|
|
||||||
|
is_request_method (m: READABLE_STRING_8): BOOLEAN
|
||||||
|
-- Is `m' the Current request_method?
|
||||||
|
do
|
||||||
|
Result := request_method.is_case_insensitive_equal (m)
|
||||||
|
end
|
||||||
|
|
||||||
feature {NONE} -- Access: global variable
|
feature {NONE} -- Access: global variable
|
||||||
|
|
||||||
items_table: HASH_TABLE [WSF_VALUE, READABLE_STRING_8]
|
items_table: HASH_TABLE [WSF_VALUE, READABLE_STRING_8]
|
||||||
|
|||||||
Reference in New Issue
Block a user