-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp_method.e
129 lines (104 loc) · 1.3 KB
/
http_method.e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
note
description: "Summary description for {HTTP_METHOD}."
author: ""
date: "$Date$"
revision: "$Revision$"
class
HTTP_METHOD
inherit ANY
redefine
out
end
create
options,
get,
head,
post,
put,
delete,
trace,
connect
feature
id: INTEGER
options
do
id := options_id
end
get
do
id := get_id
end
head
do
id := head_id
end
post
do
id := post_id
end
put
do
id := put_id
end
delete
do
id := delete_id
end
trace
do
id := trace_id
end
connect
do
id := connect_id
end
is_options: BOOLEAN
do
Result := id = options_id
end
is_get: BOOLEAN
do
Result := id = get_id
end
is_head: BOOLEAN
do
Result := id = head_id
end
is_post: BOOLEAN
do
Result := id = post_id
end
is_put: BOOLEAN
do
Result := id = put_id
end
is_delete: BOOLEAN
do
Result := id = delete_id
end
is_trace: BOOLEAN
do
Result := id = trace_id
end
is_connect: BOOLEAN
do
Result := id = connect_id
end
options_id: INTEGER = 0
get_id: INTEGER = 1
head_id: INTEGER = 2
post_id: INTEGER = 3
put_id: INTEGER = 4
delete_id: INTEGER = 5
trace_id: INTEGER = 6
connect_id: INTEGER = 7
out: STRING
do
inspect id
when get_id then
Result := "GET"
else
Result := "<other method>"
end
end
end