ŹR
Size: a a a
ŹR
ŹR
DA
h apply
, достаточно глянуть на @spec и всё сразу становится ясно, дальше можно не читать. Как минимум, это удобно.DA
AU
DA
iex(abillix@raznix.vnix)128> h :erlang.float_to_binary
:erlang.float_to_binary/1
@spec float_to_binary(float) :: binary() when float: float()
Module was compiled without docs. Showing only specs.
:erlang.float_to_binary/2
@spec float_to_binary(float, options) :: binary()
when float: float(),
options: [option],
option:
{:decimals, decimals :: 0..253}
| {:scientific, decimals :: 0..249}
| :compact
Module was compiled without docs. Showing only specs.
DA
AK
AK
PG
RP
DP
HTTPoison.start()
url = "http://localhost:3000/"
HTTPoison.post("#{url}",
{:file, file},
[{"Authorization", ""}])
The following arguments were given to :hackney_bstr.to_binary/1:
# 1
#PID<0.188.0>
(hackney) /deps/hackney/src/hackney_bstr.erl:35: :hackney_bstr.to_binary/1
DP
pdf_file = File.open("printing/#{file_name}_report_graph.pdf", [:write])
{:ok, file} = pdf_file
case HPDF.print_pdf!(my_url, timeout: 60_000, print_options: %{landscape: true}, after_load_delay: 10000) do
{:ok, pdf_data} -> IO.binwrite(file, pdf_data)
end
МБ
pdf_file = File.open("printing/#{file_name}_report_graph.pdf", [:write])
{:ok, file} = pdf_file
case HPDF.print_pdf!(my_url, timeout: 60_000, print_options: %{landscape: true}, after_load_delay: 10000) do
{:ok, pdf_data} -> IO.binwrite(file, pdf_data)
end
МБ
HTTPoison.post("https://content.dropboxapi.com/2/files/upload",
{:file, "local_file.txt"},
[{"Authorization", "Bearer "}, ...])
МБ
HTTPoison.post!(
url,
{:multipart, [{:file, file}]},
[],
recv_timeout: 30000
)
DP
HTTPoison.post!(
url,
{:multipart, [{:file, file}]},
[],
recv_timeout: 30000
)
** (FunctionClauseError) no function clause matching in :filename.do_flatten/2
The following arguments were given to :filename.do_flatten/2:
# 1
#PID<0.188.0>
# 2
[]
(stdlib) filename.erl:992: :filename.do_flatten/2
(stdlib) filename.erl:190: :filename.basename/1
МБ
МБ
DP