Skip to content

Commit

Permalink
Update http.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danuk committed Sep 12, 2023
1 parent ca23e75 commit 4224244
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/ru/docs/setup/servers/transport/http.md
Expand Up @@ -62,4 +62,21 @@ curl https://api.telegram.org/bot2836119681:AAEyvDasDFC-Y98xmYOhLni8p2bhshjkhio/
-d '{"chat_id":1234567890,"text":"test message"}'
```

### Формирование QueryString для GET запросов

Используйте ф-ию `toQueryString()` для формирования аргументов для GET запросов.

Пример:
```
{{
toQueryString(
A = 1
text = "test message"
qaz = "Привет Мир "
)
}}
```

Вернет строку вида: `text=test%20message&A=1&qaz=%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%20%D0%9C%D0%B8%D1%80%20`, которая
будет автоматически добавлена к URI.

0 comments on commit 4224244

Please sign in to comment.