anchor.diff:      Req, State}.
   
   
  -content_types_accepted(Req, State) ->
  -  {
  -    [{{<<"application">>, <<"x-www-form-urlencoded">>, []}, start_app}],
  -    Req, State}.
  -
  -
   
   %%-----------------------------------------------------------------------------
   %% @doc
  
positive.code: -spec handle_get_apps_as_json(Req :: cowboy_req:req(), State :: any())
        -> {JsonRS :: binary(), Req :: cowboy_req:req(), State :: any()}.
  handle_get_apps_as_json(Req, State) ->
    case cowboy_req:binding(state, Req) of
      <<"loaded">> ->
        get_running_apps_as_json(Req, State);
      <<"running">> ->
        get_loaded_apps_as_json(Req, State);
      _ ->
        {undefined, Req, State}
    end.
  
  
  
negative.code: -spec content_types_provided(Req :: cowboy_req:req(), State :: any())
        -> {[{binary(), atom()},...], Req :: cowboy_req:req(), State :: any()}.
  content_types_provided(Req, State) ->
    io:format("content_types_provided!~n"),
    {[
      {<<"application/json">>, handle_get_apps_as_json}
      ], Req, State}.
  
  
  content_types_accepted(Req, State) ->
    io:format("content_types_accepted!~n"),
    {
      [{{
        <<"application">>,
        <<"x-www-form-urlencoded">>,
        []
      }, start_app}],
      Req, State}.
  
  
  %%-----------------------------------------------------------------------------
  