Libproxy – 1.0: How to use libproxy in Vala
Description: Reference for Libproxy-1.0: How to use libproxy in Vala

# How to use libproxy in Vala

## Makefile

    all: sample

    sample: sample.vala
        valac --pkg libproxy-1.0 sample.vala

    clean:
        rm sample

## Source

    using px;

    void main() {
      var pf = new px.ProxyFactory();
      string[] proxies = pf.get_proxies("https://github.com/libproxy/libproxy");

      foreach (string proxy in proxies) {
        stdout.printf ("%s\n", proxy);
      }
    }