comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
Subject: Re: AWS applications and domain hosting
Date: 01 Jul 2005 08:01:25 +0200
Date: 2005-07-01T08:01:36+02:00	[thread overview]
Message-ID: <uirzvoyiy.fsf@obry.net> (raw)
In-Reply-To: m27jgbcs7o.fsf@hugin.crs4.it


Jacob Sparre Andersen <sparre@nbi.dk> writes:

> I wasn't aware of the AWS.Response.File function.  Does this it stream
> the file?  

No this routine does not stream the file but it does not read all the file in
memory. It reads bit of it at a time and send it over. See the
AWS.Net.Buffered.

> Or do you have to load it into memory first?  If AWS knows
> how to stream files, my point about handing out files is clearly not
> valid.

It knows too. See AWS.Resources.Streams.Disk, AWS.Resources.Streams.Disk_Once,
AWS.Resources.Streams.Memory, AWS.Resources.Streams.Memory,
AWS.Resources.Streams.Memory.Zlib. Is that enough ?

A Streams.Memory read/create byte directly from memory. Disk is obvious,
Disk_Once read the file and then delete it (useful when sending over a file
created from the user for example, you really want to delete it when sent).

It is also possible to create your own stream method by deriving from
AWS.Resources.Streams...

And there is much much more ! Be sure to read the manual :)

> How about handling of content negotiation?  Can AWS also do that for
> me?  (yes, I _could_ read the manual) Or will I get the pleasure of
> implementing that myself?

Don't know what you are calling "content negotiation" ?

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



  reply	other threads:[~2005-07-01  6:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-26  9:36 AWS applications and domain hosting Martin Dowie
2005-06-26 10:51 ` Adrian Knoth
2005-06-26 12:36 ` Jacob Sparre Andersen
2005-06-26 13:18 ` Larry Kilgallen
2005-06-26 19:29 ` Marius Amado Alves
2005-06-26 22:46   ` Jacob Sparre Andersen
2005-06-30 20:00     ` Randy Brukardt
2005-06-30 20:45       ` Pascal Obry
2005-06-30 23:58         ` Jacob Sparre Andersen
2005-07-01  6:01           ` Pascal Obry [this message]
2005-07-02 20:28             ` Jacob Sparre Andersen
2005-07-02 21:50               ` Pascal Obry
     [not found]       ` <m23bqzcrew.fsf@hugin.crs4.it>
2005-07-01  1:45         ` Randy Brukardt
2005-06-26 23:00   ` Björn Persson
2005-06-26 23:45     ` Marius Amado Alves
2005-06-29  2:42     ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox