Move http-client tests from httpd to http-client
parent
ea2a60df7e
commit
5bfd845b04
|
@ -1,7 +1,5 @@
|
||||||
! Copyright (C) 2005 Slava Pestov.
|
! Copyright (C) 2005 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
REQUIRES: libs/http ;
|
|
||||||
|
|
||||||
IN: http-client
|
IN: http-client
|
||||||
USING: errors hashtables http kernel math namespaces parser
|
USING: errors hashtables http kernel math namespaces parser
|
||||||
sequences io strings ;
|
sequences io strings ;
|
||||||
|
@ -66,6 +64,4 @@ DEFER: http-get
|
||||||
#! Make a POST request. The content is URL encoded for you.
|
#! Make a POST request. The content is URL encoded for you.
|
||||||
parse-url over parse-host <client> [
|
parse-url over parse-host <client> [
|
||||||
post-request flush read-response stdio get contents
|
post-request flush read-response stdio get contents
|
||||||
] with-stream ;
|
] with-stream ;
|
||||||
|
|
||||||
PROVIDE: libs/http-client ;
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
REQUIRES: libs/http ;
|
||||||
|
|
||||||
|
PROVIDE: libs/http-client
|
||||||
|
{ +files+ { "http-client.factor" } }
|
||||||
|
{ +tests+ { "test.factor" } } ;
|
|
@ -18,7 +18,6 @@ PROVIDE: libs/httpd
|
||||||
} }
|
} }
|
||||||
{ +tests+ {
|
{ +tests+ {
|
||||||
"test/html.factor"
|
"test/html.factor"
|
||||||
"test/http-client.factor"
|
|
||||||
"test/httpd.factor"
|
"test/httpd.factor"
|
||||||
"test/url-encoding.factor"
|
"test/url-encoding.factor"
|
||||||
} } ;
|
} } ;
|
||||||
|
|
Loading…
Reference in New Issue