Toolshed.HTTP (toolshed v0.2.22) View Source

Helpers that make HTTP requests

Link to this section Summary

Functions

Perform a HTTP GET request for the specified URL

Generate an ASCII art QR code

Display the local weather

Link to this section Functions

Link to this function

httpget(url, options \\ [])

View Source

Specs

httpget(String.t(), dest: Path.t(), verbose: boolean()) ::
  :"do not show this result in output"

Perform a HTTP GET request for the specified URL

By default, the results are printed or you can optionally choose to download it to a specific location on the file system.

Options:

  • :dest - File path to write the response to. Defaults to printing to the terminal.
  • :verbose - Display request and response headers. Disabled by default.

Specs

qr_encode(String.t()) :: :"do not show this result in output"

Generate an ASCII art QR code

See https://github.com/chubin/qrenco.de for more information.

Specs

weather() :: :"do not show this result in output"

Display the local weather

See http://wttr.in/:help for more information.