anchor.diff:  	[{scheme, <<"http">>}, {port, Port}, {opts, []},
   		{transport, Transport}, {client, Client}|Config].
   
  -end_per_group(Group, Config) when Group =:= https; Group =:= https_compress ->
  -	cowboy:stop_listener(https),
  +end_per_group(Name, _) when Name =:= https; Name =:= https_compress ->
  +	cowboy:stop_listener(Name),
   	application:stop(ssl),
   	application:stop(public_key),
  -	end_static_dir(Config),
   	ok;
  -end_per_group(Group, Config) when Group =:= http; Group =:= http_compress ->
  -	cowboy:stop_listener(http),
  -	end_static_dir(Config);
   end_per_group(Name, _) ->
   	cowboy:stop_listener(Name),
   	ok.
  
positive.code: 			{"/", http_handler, []}
  		]}
  	]).
  
  init_static_dir(Config) ->
  	Dir = filename:join(?config(priv_dir, Config), "static"),
  	Level1 = fun(Name) -> filename:join(Dir, Name) end,
  	ok = file:make_dir(Dir),
  	ok = file:write_file(Level1("test_file"), "test_file\n"),
  	ok = file:write_file(Level1("test_file.css"), "test_file.css\n"),
  	ok = file:write_file(Level1("test_noread"), "test_noread\n"),
  	ok = file:change_mode(Level1("test_noread"), 8#0333),
  	ok = file:write_file(Level1("test.html"), "test.html\n"),
  	ok = file:make_dir(Level1("test_dir")),
  	[{static_dir, Dir}|Config].
  
  end_static_dir(Config) ->
  	Dir = ?config(static_dir, Config),
  	Level1 = fun(Name) -> filename:join(Dir, Name) end,
  	ok = file:delete(Level1("test_file")),
  	ok = file:delete(Level1("test_file.css")),
  	ok = file:delete(Level1("test_noread")),
  	ok = file:delete(Level1("test.html")),
  	ok = file:del_dir(Level1("test_dir")),
  	ok = file:del_dir(Dir),
  	Config.
  
  %% Convenience functions.
  
  
negative.code: 			{"/static_specify_file/[...]",  cowboy_static,
  				[{directory, ?config(static_dir, Config)},
  				 {mimetypes, [{<<".css">>, [<<"text/css">>]}]},
  				 {file, <<"style.css">>}]},
  			{"/multipart", http_multipart, []},
  			{"/echo/body", http_echo_body, []},
  			{"/echo/body_qs", http_body_qs, []},
  