Skip to content

Commit

Permalink
Added Erlang example
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Razmjou committed Aug 14, 2020
1 parent 1be8dd7 commit 4ab519e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 35 deletions.
3 changes: 0 additions & 3 deletions Examples/Dart/CHANGELOG.md

This file was deleted.

14 changes: 0 additions & 14 deletions Examples/Dart/Dart.iml

This file was deleted.

4 changes: 0 additions & 4 deletions Examples/Dart/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions Examples/Dart/pubspec.yaml

This file was deleted.

19 changes: 19 additions & 0 deletions Examples/Erlang/src/test_gocache.erl
Original file line number Diff line number Diff line change
@@ -0,0 1,19 @@
%%%-------------------------------------------------------------------
%%% @author Amir Razmjou
%%% @copyright (C) 2020
%%% Created : 14. Aug 2020 2:52 AM
%%%-------------------------------------------------------------------
-module(test_gocache).
-author("[email protected]").

%% API
-export([test/0]).

test() ->
inets:start(),
Url = "http://localhost:8080/cache/Hello",
httpc:request(put, {Url, [],[], "World"}, [], []),
{ok, {{_, _, _}, _, Body}} = httpc:request(get, {Url, []}, [], []),
erlang. "Hello = " Body.


0 comments on commit 4ab519e

Please sign in to comment.