You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/modules/server.yml
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -161,11 +161,23 @@ types:
161
161
- name: html
162
162
args: 'html'
163
163
desc: sets result to the specified html string. Also sets Content-Type header to text/html
164
-
desc_ru: устанавливает указанныую html-строку в качестве результата. Также устанавливает заголовок Content-Type в text/html
164
+
desc_ru: устанавливает указанную html-строку в качестве результата. Также устанавливает заголовок Content-Type в text/html
165
165
- name: ip
166
166
args: ''
167
167
desc: returns an IP address
168
168
desc_ru: возвращает IP адрес
169
+
- name: isHttpMethod
170
+
args: ''
171
+
desc: returns true if the request is http method
172
+
desc_ru: возвращает true, если запрос — http метод
173
+
- name: isMultipartFormData
174
+
args: ''
175
+
desc: returns true if the request is multipart/formdata
176
+
desc_ru: возвращает true, если запрос — multipart/formdata
177
+
- name: isMultipart
178
+
args: ''
179
+
desc: returns true if the request is multipart
180
+
desc_ru: возвращает true, если запрос — multipart
169
181
- name: json
170
182
args: 'obj'
171
183
desc: serializes an object to json string and sets it as the result
@@ -178,10 +190,18 @@ types:
178
190
args: ''
179
191
desc: returns a matched request path
180
192
desc_ru: возвращает совпавший путь запроса
193
+
- name: method
194
+
args: ''
195
+
desc: returns a method (GET, POST, ...)
196
+
desc_ru: возвращает метод (GET, POST, ...)
181
197
- name: path
182
198
args: ''
183
199
desc: returns a request path
184
200
desc_ru: возвращает путь запроса
201
+
- name: pathParam
202
+
args: 'key'
203
+
desc: returns a request path parameter
204
+
desc_ru: возвращает параметр пути запроса
185
205
- name: port
186
206
args: ''
187
207
desc: returns a port number
@@ -190,6 +210,10 @@ types:
190
210
args: ''
191
211
desc: returns a protocol
192
212
desc_ru: возвращает протокол
213
+
- name: queryParam
214
+
args: 'key'
215
+
desc: returns a query parameter
216
+
desc_ru: возвращает параметр запроса
193
217
- name: queryString
194
218
args: ''
195
219
desc: returns a query string
@@ -210,6 +234,10 @@ types:
210
234
args: 'value = ""'
211
235
desc: gets or sets a result. `value` can be a string or a byte array
212
236
desc_ru: получает или устанавливает результат. `value` может быть строкой или массивом байт
237
+
- name: status
238
+
args: 'status = ...'
239
+
desc: gets or sets a status code. `status` can be an integer status code (404, 500) or a string status name ("NOT_FOUND", "INTERNAL_SERVER_ERROR").
240
+
desc_ru: получает или устанавливает код статуса. `status` может быть числовым кодом (404, 500) или строкой имени статуса ("NOT_FOUND", "INTERNAL_SERVER_ERROR")
0 commit comments