|
@ -208,42 +208,42 @@ dump_errors(Key, Iod) -> |
|
|
%% Unit Tests |
|
|
%% Unit Tests |
|
|
%%------------------------------------------------------------------------------ |
|
|
%%------------------------------------------------------------------------------ |
|
|
-define(TEST_LIST, [{"http://intranet/messenger", get}, |
|
|
-define(TEST_LIST, [{"http://intranet/messenger", get}, |
|
|
{"http://www.google.co.uk", get}, |
|
|
|
|
|
{"http://www.google.com", get}, |
|
|
|
|
|
{"http://www.google.com", options}, |
|
|
|
|
|
{"https://mail.google.com", get}, |
|
|
|
|
|
{"http://www.sun.com", get}, |
|
|
|
|
|
{"http://www.oracle.com", get}, |
|
|
|
|
|
{"http://www.bbc.co.uk", get}, |
|
|
|
|
|
{"http://www.bbc.co.uk", trace}, |
|
|
|
|
|
{"http://www.bbc.co.uk", options}, |
|
|
|
|
|
{"http://yaws.hyber.org", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/ChunkedScript", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/TE/foo.txt", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/TE/bar.txt", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/connection.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc-private.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc-proxy-revalidate.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc-nocache.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/h-content-md5.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/h-retry-after.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/h-retry-after-date.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/neg", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/negbad", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/400/toolong/", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/300/", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/Basic/", get, [{basic_auth, {"guest", "guest"}}]}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/CL/", get}, |
|
|
|
|
|
{"http://www.httpwatch.com/httpgallery/chunked/", get}, |
|
|
|
|
|
{"https://github.com", get, [{ssl_options, [{depth, 2}]}]}, |
|
|
|
|
|
{local_test_fun, test_20122010, []}, |
|
|
|
|
|
{local_test_fun, test_pipeline_head_timeout, []}, |
|
|
|
|
|
{local_test_fun, test_head_transfer_encoding, []}, |
|
|
|
|
|
{local_test_fun, test_head_response_with_body, []}, |
|
|
|
|
|
{local_test_fun, test_303_response_with_a_body, []}, |
|
|
|
|
|
{local_test_fun, test_binary_headers, []} |
|
|
|
|
|
]). |
|
|
|
|
|
|
|
|
{"http://www.google.co.uk", get}, |
|
|
|
|
|
{"http://www.google.com", get}, |
|
|
|
|
|
{"http://www.google.com", options}, |
|
|
|
|
|
{"https://mail.google.com", get}, |
|
|
|
|
|
{"http://www.sun.com", get}, |
|
|
|
|
|
{"http://www.oracle.com", get}, |
|
|
|
|
|
{"http://www.bbc.co.uk", get}, |
|
|
|
|
|
{"http://www.bbc.co.uk", trace}, |
|
|
|
|
|
{"http://www.bbc.co.uk", options}, |
|
|
|
|
|
{"http://yaws.hyber.org", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/ChunkedScript", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/TE/foo.txt", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/TE/bar.txt", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/connection.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc-private.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc-proxy-revalidate.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/cc-nocache.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/h-content-md5.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/h-retry-after.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/h-retry-after-date.html", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/neg", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/negbad", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/400/toolong/", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/300/", get}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/Basic/", get, [{basic_auth, {"guest", "guest"}}]}, |
|
|
|
|
|
{"http://jigsaw.w3.org/HTTP/CL/", get}, |
|
|
|
|
|
{"http://www.httpwatch.com/httpgallery/chunked/", get}, |
|
|
|
|
|
{"https://github.com", get, [{ssl_options, [{depth, 2}]}]}, |
|
|
|
|
|
{local_test_fun, test_20122010, []}, |
|
|
|
|
|
{local_test_fun, test_pipeline_head_timeout, []}, |
|
|
|
|
|
{local_test_fun, test_head_transfer_encoding, []}, |
|
|
|
|
|
{local_test_fun, test_head_response_with_body, []}, |
|
|
|
|
|
{local_test_fun, test_303_response_with_a_body, []}, |
|
|
|
|
|
{local_test_fun, test_binary_headers, []} |
|
|
|
|
|
]). |
|
|
|
|
|
|
|
|
unit_tests() -> |
|
|
unit_tests() -> |
|
|
unit_tests([]). |
|
|
unit_tests([]). |
|
|