[plt-scheme] web-server: response/basic vs. response/full

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Sun Nov 16 02:01:03 EST 2008

The documentation for response/basic [1] says that there is a 'code'
field. You can make the code 304. For example:

(make-response/basic 302 "Not Modified" (current-seconds) #"text/plain" empty)

You can also use a response/full with the additional field if you need
some content too.

Are you saying you didn't realize you could do this, or that there is
a bug when you try to?

Jay

1. http://docs.plt-scheme.org/web-server/response-structs_ss.html

On Sat, Nov 15, 2008 at 6:20 PM, YC <yinso.chen at gmail.com> wrote:
> Hi -
>
> I've been tripping up trying to return a 304 Not Modified, until I found
> that if I return response/basic, the status is always 200.  It seems that
> reduce potential usage for response/basic.  Is there a significance for such
> a limitation?  (I haven't upgraded to latest, so not sure if the behavior
> has changed).
>
> Thanks,
> yc
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://jay.teammccarthy.org

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.