Skip to content

Commit ff8bcda

Browse files
authored
Merge pull request #280 from sshanks-kx/httpclient
.Q.hp and .Q.hg response is a string
2 parents 17f49bb + 182ca38 commit ff8bcda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/ref/dotq.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ Saves all tables by calling `.Q.dpft`, clears tables, and sends reload message t
10031003
.Q.hg x
10041004
```
10051005

1006-
Where `x` is a URL as a symbol atom or (since V3.6 2018.02.10) a string, returns as a list of strings the result of an HTTP[S] GET query.
1006+
Where `x` is a URL as a symbol atom or (since V3.6 2018.02.10) a string, returns a string for the result of an HTTP[S] GET query.
10071007
(Since V3.4)
10081008

10091009
```q
@@ -1081,9 +1081,11 @@ Where
10811081
- `y` is a MIME type as a string
10821082
- `z` is the POST query as a string
10831083

1084-
returns as a list of strings the result of an HTTP[S] POST query.
1084+
Returns a string for the result of an HTTP[S] POST query.
10851085
(Since V3.4)
10861086

1087+
Uses proxy settings if defined, as described in [hg (HTTP get)](#hp-http-get).
1088+
10871089
```q
10881090
q).Q.hp["http://google.com";.h.ty`json]"my question"
10891091
"<!DOCTYPE html>\n<html lang=en>\n <meta charset=utf-8>\n <meta name=viewpo..

0 commit comments

Comments
 (0)