|
|
Add sessions to HttpServer.
A session is started when HttpRequest.getSession() is called. The
session will then be added to the session manager. The session manager
then controls timeouts.
The session id is create by using the a crypto-random sequence of 16
bytes. These are extracted by using /dev/urandom on posix and
CryptGenRandom on windows.
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=13870
Total comments: 8
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+484 lines, -3 lines) |
Patch |
 |
M |
runtime/bin/builtin_impl_sources.gypi
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/builtin_natives.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
runtime/bin/crypto.h
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
runtime/bin/crypto.cc
|
View
|
1
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
runtime/bin/crypto_linux.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
A |
runtime/bin/crypto_macos.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
A |
runtime/bin/crypto_win.cc
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/http.dart
|
View
|
1
|
3 chunks |
+39 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/http_impl.dart
|
View
|
1
|
9 chunks |
+60 lines, -2 lines |
1 comment
|
Download
|
 |
A |
runtime/bin/http_session.dart
|
View
|
1
|
1 chunk |
+160 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/io_sources.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
tests/standalone/io/http_session_test.dart
|
View
|
|
1 chunk |
+103 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|