Skip to content

Instantly share code, notes, and snippets.

@zkat
Last active December 12, 2015 00:19
Show Gist options
  • Select an option

  • Save zkat/4683154 to your computer and use it in GitHub Desktop.

Select an option

Save zkat/4683154 to your computer and use it in GitHub Desktop.
How should this be converted?
cowboy:start_http(
?MODULE, 100,
[{port, Port}],
[{dispatch,
[{'_',
[{[<<"static">>, '...'],
cowboy_static,
[{directory,
{priv_dir, mymod,
[<<"www">>, <<"static">>]}},
{mimetypes,
{fun mimetypes:path_to_mimes/2,
default}},
{etag, {attributes, [filepath, filesize, inode, mtime]}}]},
{['...'],
mylib_http,
{my_http_ui,
[]}}]}]}]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment