Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

""

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@818 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
commit 2f8bae9882d2a099bcad091e45e529d4040a3572 1 parent 72fa856
@klacke authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 www/stream.yaws
View
8 www/stream.yaws
@@ -23,18 +23,18 @@ out(A) ->
[{h1, [], "Streaming data to the client"},
{p, [],
- "Sometimes we want to stream data to the client. Maybe we don't know or cannot compute the size of the data. Regardless of what, we do not want to keep all data in memory until it's shipped to the client. We want to use chunked encodings, and simply send data in chunks to the client. This is performed in steps.First the out/1 return value:"},
+ "Sometimes we want to stream data to the client. Maybe we don't know or cannot compute the size of the data. Regardless of what, we do not want to keep all data in memory until it's shipped to the client. We want to use chunked encodings, and simply send data in chunks to the client. This is performed in steps. First the out/1 return value:"},
box(" {streamcontent, MimeType, FirstChunk}"),
{p,[], ["Is returned from the out/1 function"
- "This make the erlang process processing that particular page go int a receive loop, waiting for more data. Somehow, another process in the erlang system, must then deliver data to the waiting/receiving erlang processs. There are two asyncronous API functions that can be used to deliver that data."]},
+ " This make the erlang process processing that particular page go into a receive loop, waiting for more data. Somehow, another process in the erlang system, must then deliver data to the waiting/receiving erlang processs. There are two asyncronous API functions that can be used to deliver that data."]},
box("yaws_api:stream_chunk_deliver(YawsPid, Data)"),
-
+ {p, [], "and"},
box("yaws_api:stream_chunk_end(YawsPid)"),
- {p, [], "The YawsPid argumen is the process identifier of the original yaws process processing the page, i.e. self(), in the .yaws file."},
+ {p, [], "The YawsPid argument is the process identifier of the original yaws process processing the page, i.e. self(), in the .yaws file."},
{p, [],"Maybe this gets clear with a programing example, let's use a process reading a random number of bytes from /dev/urandom as the source of the data"},
Please sign in to comment.
Something went wrong with that request. Please try again.