Module z_url_fetch

Fetch (part of) the data of an Url, including its headers.

Copyright © 2014 Marc Worrell

Authors: Marc Worrell.

Description

Fetch (part of) the data of an Url, including its headers.

Data Types

option()

option() = {device, pid()} | {timeout, pos_integer()} | {max_length, pos_integer()}

options()

options() = [option()]

Function Index

fetch/2Fetch the data and headers from an url.
fetch_partial/1Fetch the first kilobytes of data and headers from an url.
fetch_partial/2Fetch the first N bytes of data and headers from an url, optionally save to the file device.

Function Details

fetch/2

fetch(Url::string() | binary(), Options::options()) -> {ok, {string(), list(), pos_integer(), binary()}} | {error, term()}

Fetch the data and headers from an url

fetch_partial/1

fetch_partial(Url::string() | binary()) -> {ok, {string(), list(), pos_integer(), binary()}} | {error, term()}

Fetch the first kilobytes of data and headers from an url

fetch_partial/2

fetch_partial(DataUrl::string() | binary(), Options::options()) -> {ok, {string(), list(), pos_integer(), binary()}} | {error, term()}

Fetch the first N bytes of data and headers from an url, optionally save to the file device


Generated by EDoc, Jul 23 2016, 20:01:54.