Permalink
Browse files

""

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@82 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent 661d88b commit 88e56840a0bafa7b04fc06535a39c26dcc99ae16 @klacke committed Jun 14, 2002
Showing with 15 additions and 12 deletions.
  1. +1 −1 src/Makefile
  2. +2 −1 src/yaws_api.erl
  3. +2 −0 src/yaws_server.erl
  4. +1 −1 www/EXHEAD
  5. +2 −2 www/shopingcart/cart.yaws
  6. +4 −1 www/shopingcart/mall.yaws
  7. +3 −6 www/todo.yaws
View
2 src/Makefile
@@ -41,7 +41,7 @@ debug:
$(MAKE) TYPE=debug
clean:
- rm -f $(EBIN_FILES)
+ rm -f $(EBIN_FILES) yaws_vsn.erl
install: all
install -d $(INSTALLPREFIX)/lib/yaws/examples/ebin
View
3 src/yaws_api.erl
@@ -246,7 +246,8 @@ setcookie(Name, Value, Path, Expire, Domain) ->
setcookie(_Name, _Value, _Path, _Expire, _Domain, _Secure) ->
exit(nyi).
-
+
+
View
2 src/yaws_server.erl
@@ -880,6 +880,7 @@ deliver_403(CliSock, _Req, GC, SC) ->
make_connection_close(true),
make_content_length(size(B)),
make_content_type(),
+ accumulate_content(B),
deliver_accumulated(#dcc{}, CliSock, GC, SC),
done.
@@ -892,6 +893,7 @@ deliver_404(CliSock, GC, SC, Req, SC) ->
make_connection_close(true),
make_content_length(size(B)),
make_content_type(),
+ accumulate_content(B),
deliver_accumulated(#dcc{}, CliSock, GC, SC),
done.
View
2 www/EXHEAD
@@ -9,7 +9,7 @@
<td> <A HREF="redirect.yaws">Redirect</a> </td>
<td> <A HREF="cookies.yaws">Cookies</a> </td>
<td> <A HREF="pcookie.yaws">Persistant Cookies</a> </td>
- <td> <A HREF="shopcart/cart.yaws">Tiny shoping cart</a> </td>
+ <td> <A HREF="shopingcart/cart.yaws">Tiny shoping cart</a> </td>
</tr>
</table>
<hr>
View
4 www/shopingcart/cart.yaws
@@ -30,7 +30,7 @@ setcookie(A) ->
yaws_api:setcookie("cart", integer_to_list(Num), "/").
-some_headers(A) ->
+out(A) ->
ensure_cart_server(),
H = A#arg.headers,
C = H#headers.cookie,
@@ -57,7 +57,7 @@ some_headers(A) ->
<title Cart </title>
</head>
-<IMG SRC="/shopcart/junk.jpg" WIDTH="400" ALT="cart">
+<IMG SRC="/shopingcart/junk.jpg" WIDTH="400" ALT="cart">
<h1> Shopcart example </h1>
View
5 www/shopingcart/mall.yaws
@@ -1,8 +1,11 @@
-<IMG SRC="/shopcart/junk.jpg" WIDTH="400" ALT="cart">
+<IMG SRC="/shopingcart/junk.jpg" WIDTH="400" ALT="cart">
<h1> The Mall </h1>
<erl>
+
+
+
out(A) ->
H = A#arg.headers,
C = H#headers.cookie,
View
9 www/todo.yaws
@@ -13,20 +13,17 @@ out(A) ->
<li> clusters
<li> handle the If-..... headers
-<li> generate Etag for static content
<li> handle Range header
<li> TRACE, PUT, OPTIONS ......
-<li> optimize with some precalculated headers
-<li> documentation in the www directory
-<li> more functions in yaws_api redirect(), push() ....
+<li> more documentation in the www directory
+<li> more functions in yaws_api push() ....
<li> lots of examples
<li> maybe do .htaccess
<li> do something cool, maybe a streaming audio app
<li> shell access into the daemon .... no bad idea
<li> authenticated pages
<li> HTTP trailer support
-<li> man pages for yaws as well as yaws.conf
-<li> make sure yaws vsn gets inserted correctly in http output
+<li> <erl> substitution in ssi pages as well as regular pages
</ul>

0 comments on commit 88e5684

Please sign in to comment.