Skip to content

Instantly share code, notes, and snippets.

View ericmj's full-sized avatar

Eric Meadows-Jönsson ericmj

View GitHub Profile
-module(gun_proxied_tls).
-behaviour(gen_server).
%% Gun-specific interface.
-export([ssl_connect/2]).
-export([ssl_connect/3]).
-export([proxy_received/2]).
%% Transport callback.
@ericmj
ericmj / question.ex
Last active April 26, 2016 20:14 — forked from brweber2/question.ex
defmodule WhatHappensIn_1_3 do
def some_func() do
receive do
{from, message} ->
send from, "hello #{inspect message}"
some_func()
_ ->
IO.puts "quittin' time"
end