Eitaro Fukamachi
32358fdad0
Add request-content for getting the whole request body from raw-body.
2016-10-17 20:27:32 +09:00
Eitaro Fukamachi
3940e86e8e
Use circular-streams for wrapping raw-body.
2016-10-17 20:27:27 +09:00
Eitaro Fukamachi
4e3dd0b4a8
Add stream-element-type for writer-stream.
2016-09-28 16:45:30 +09:00
Eitaro Fukamachi
8c6ba6f41d
Delete a dependency of lack.util on Alexandria.
2016-09-27 12:36:36 +09:00
Eitaro Fukamachi
6159d4a5ff
Add lack.util.writer-stream for treating delayed responding writer as a stream.
2016-09-27 12:35:57 +09:00
Eitaro Fukamachi
82dd7c4b24
Change Lack.Response to add 'body' when it exists even if it doesn't at first.
2016-09-24 02:26:47 +09:00
Eitaro Fukamachi
1db8798811
Fix lack.response not to add NIL as the body when only 2 values are given to make-response.
2016-09-23 01:14:55 +09:00
Eitarow Fukamachi
17d15c7102
Add :record-timestamps to dbi-store for recording created_at & updated_at.
2016-08-23 22:01:50 +09:00
Eitarow Fukamachi
618435d8ed
Allow to change the cookie key of Lack Session (the default is 'lack.session')
2016-08-16 13:13:34 +09:00
Eitaro Fukamachi
9ff8959571
Stop executing a meaningless UPDATE query when the session isn't changed.
2016-02-11 21:35:17 +09:00
Eitaro Fukamachi
d06ba3737c
Add default keys to lack.session.options.
2016-02-11 21:34:56 +09:00
Eitaro Fukamachi
7ab8ac79e6
Add lack.session.store.redis for storing session data in Redis.
2016-02-09 22:05:37 +09:00
Eitaro Fukamachi
0ec31a24a6
Suppress loading messages in find-package-or-load.
2016-02-08 16:18:16 +09:00
Eitaro Fukamachi
1905bfb718
Merge pull request #16 from fukamachi/fix-session-store-dbi
...
Fix lack-session-store-dbi to allow UTF-8 data
2015-11-19 19:28:02 +09:00
Eitaro Fukamachi
4f07c50b6c
Fix an error when storing UTF-8 data to DBI session store.
2015-11-19 18:05:04 +09:00
Eitaro Fukamachi
3a74575651
Show warnings when deserializing a session failed.
2015-11-19 18:02:07 +09:00
Matthew Stickney
760d065e51
Don't leak sessions when changing session id.
...
Previously COMMIT was generating a new id for the session but not
communicating it to the caller, so when FINALIZE-STATE was called it
resent the old id to the client and the session was lost (the leak).
Instead, generate the (possibly) new id in FINALIZE and pass it to
COMMIT and FINALIZE-STATE, which will send the new id to the client.
2015-10-09 13:32:59 -04:00
Eitaro Fukamachi
13677d3ad2
Fix not to expire sessions permanently ( fixes #13 ).
2015-10-09 14:11:44 +09:00
Eitaro Fukamachi
d4cdb5315d
Add :keep-empty option to Lack.Middleware.Session for preventing from sending Set-Cookie header until the session is used.
2015-09-26 15:45:38 +09:00
Eitaro Fukamachi
0d4c0a1ad8
Don't send Set-Cookie header if the cookie already exists.
2015-09-26 14:52:27 +09:00
Eitaro Fukamachi
d49b740a33
Add :new-session t to lack.session.options if no session is stored yet.
2015-09-26 14:25:02 +09:00
Eitaro Fukamachi
0cc7f9fb98
Fix the indentation in lack.middleware.session.state.cookie.
2015-09-26 14:14:36 +09:00
Eitaro Fukamachi
e25965ec60
Replace cl-fad by UIOP.
2015-08-27 08:01:51 +09:00
Eitaro Fukamachi
fd0ca964ae
Fix lack-middleware-backtrace and tests of lack-middleware-static for CLISP support.
2015-08-20 02:57:13 +09:00
Rudolph-Miller
626e527702
to-app.
2015-06-11 22:19:33 +09:00
Eitaro Fukamachi
4bc4617dbd
Allow a string for 'response-body' in lack response objects.
2015-06-05 11:00:42 +09:00
Eitaro Fukamachi
8b528cb0c0
Fix an error of lack.middleware.static in a case that the path-info contains some special characters like '?'.
...
This fixes fukamachi/clack#111 .
2015-06-03 13:20:02 +09:00
Andrey Kutejko
823216ac40
allow session middleware to wrap delayed response
2015-05-28 13:15:52 +03:00
Eitaro Fukamachi
e80f4e2ebc
Redefine to-app as a generic function.
2015-03-26 08:51:23 +09:00
Eitaro Fukamachi
f7cc256fa1
Allow a middleware object in builder.
2015-03-26 07:20:00 +09:00
Eitaro Fukamachi
ffaaebf0bc
Add docstrings to middlewares.
2015-03-25 02:40:24 +09:00
Eitaro Fukamachi
4a59a228e6
Move find-middleware from lack.builder to lack.util.
2015-03-25 02:08:26 +09:00
Eitaro Fukamachi
5ff6ffb919
Add more tests of lack-builder, mainly for old Clack middlewares.
2015-03-24 16:19:19 +09:00
Eitaro Fukamachi
4891bfd388
Delete otherwise clause because there's no possibility that any other types come as a middleware.
2015-03-24 16:08:55 +09:00
Eitaro Fukamachi
d6815bb8ff
Add default headers to ENV generate-env returns.
2015-03-24 15:41:25 +09:00
Eitaro Fukamachi
7106525601
Validate session ID.
2015-03-22 22:13:21 +09:00
Rudolph-Miller
7236640a1c
accesslog with response which body is vector.
2015-03-22 21:42:44 +09:00
Eitaro Fukamachi
77f99b4c18
Replace defvar by defparameter for middleware definitions.
2015-03-22 16:10:53 +09:00
Eitaro Fukamachi
1e1eff01c0
Delete the default methods of lack-session-state because those are useless since it's a base class.
2015-03-22 16:03:15 +09:00
Eitaro Fukamachi
ac9e556dbb
Delete lack.handler because it's a scope of Clack, not Lack.
2015-03-22 14:33:40 +09:00
Eitaro Fukamachi
ec22fa208f
Test without HTTP requests.
2015-03-22 14:30:53 +09:00
Eitaro Fukamachi
5347556b93
Delete eval.
2015-03-22 11:18:18 +09:00
Rudolph-Miller
adba550711
fix bug with conditional middleware
2015-03-22 02:33:54 +09:00
Eitaro Fukamachi
a4b4411455
Add lack-session-store-dbi.
2015-03-22 01:12:50 +09:00
Eitaro Fukamachi
aa55f761a0
Fix lack.builder to be able to specify a middleware identifier in hyphenated keywords.
2015-03-22 00:09:01 +09:00
Eitaro Fukamachi
0351d23d1b
Add lack-middleware-auth-basic.
2015-03-22 00:07:11 +09:00
Eitaro Fukamachi
2930994eb1
Allow lack-component at the last of builder.
2015-03-21 02:31:36 +09:00
Eitaro Fukamachi
3e46375783
Add lack-component.
2015-03-21 02:30:08 +09:00
Eitaro Fukamachi
9fd299e6c4
Use :request-method and :request-uri in ENV like Clack does.
2015-03-21 02:11:20 +09:00
Eitaro Fukamachi
3b7c522907
Add lack.middleware.csrf.
2015-03-21 00:53:29 +09:00