We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 904572a commit 9c9bf6fCopy full SHA for 9c9bf6f
lib/req_ch.ex
@@ -52,7 +52,7 @@ defmodule ReqCH do
52
53
In case the server needs authentication, it's possible to use `Req` options for that.
54
55
- iex> req = ReqCH.new(base_url: "https://example.org:8123", auth: {:basic, "user:pass"})
+ iex> req = ReqCH.new(base_url: "http://example.org:8123", auth: {:basic, "user:pass"})
56
iex> Req.post!(req, body: "SELECT number FROM system.numbers LIMIT 3").body
57
"0\\n1\\n2\\n"
58
@@ -195,6 +195,7 @@ defmodule ReqCH do
195
defp normalise_format(_), do: nil
196
197
@valid_formats [:tsv, :csv, :json, :explorer]
198
+
199
defp format_error(format) do
200
ArgumentError.exception(
201
"the given format #{inspect(format)} is invalid. Expecting one of #{inspect(@valid_formats)} " <>
0 commit comments