Compare commits
5 Commits
es_rev_979
...
v0
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b625892aa | |||
|
|
b1c21a1723 | ||
| 2eb3d16369 | |||
| 93265f8bdf | |||
| 21d32ac2c5 |
@@ -361,7 +361,7 @@ feature {NONE} -- Implementation
|
|||||||
when 5 then s.append ("May")
|
when 5 then s.append ("May")
|
||||||
when 6 then s.append ("Jun")
|
when 6 then s.append ("Jun")
|
||||||
when 7 then s.append ("Jul")
|
when 7 then s.append ("Jul")
|
||||||
when 8 then s.append ("Aou")
|
when 8 then s.append ("Aug")
|
||||||
when 9 then s.append ("Sep")
|
when 9 then s.append ("Sep")
|
||||||
when 10 then s.append ("Oct")
|
when 10 then s.append ("Oct")
|
||||||
when 11 then s.append ("Nov")
|
when 11 then s.append ("Nov")
|
||||||
@@ -487,7 +487,7 @@ feature {NONE} -- Implementation
|
|||||||
elseif l_mmm.same_string ("MAY") then l_mo := 05
|
elseif l_mmm.same_string ("MAY") then l_mo := 05
|
||||||
elseif l_mmm.same_string ("JUN") then l_mo := 06
|
elseif l_mmm.same_string ("JUN") then l_mo := 06
|
||||||
elseif l_mmm.same_string ("JUL") then l_mo := 07
|
elseif l_mmm.same_string ("JUL") then l_mo := 07
|
||||||
elseif l_mmm.same_string ("AOU") then l_mo := 08
|
elseif l_mmm.same_string ("AUG") then l_mo := 08
|
||||||
elseif l_mmm.same_string ("SEP") then l_mo := 09
|
elseif l_mmm.same_string ("SEP") then l_mo := 09
|
||||||
elseif l_mmm.same_string ("OCT") then l_mo := 10
|
elseif l_mmm.same_string ("OCT") then l_mo := 10
|
||||||
elseif l_mmm.same_string ("NOV") then l_mo := 11
|
elseif l_mmm.same_string ("NOV") then l_mo := 11
|
||||||
@@ -718,7 +718,7 @@ feature {NONE} -- Implementation
|
|||||||
elseif l_mmm.same_string ("MAY") then l_mo := 05
|
elseif l_mmm.same_string ("MAY") then l_mo := 05
|
||||||
elseif l_mmm.same_string ("JUN") then l_mo := 06
|
elseif l_mmm.same_string ("JUN") then l_mo := 06
|
||||||
elseif l_mmm.same_string ("JUL") then l_mo := 07
|
elseif l_mmm.same_string ("JUL") then l_mo := 07
|
||||||
elseif l_mmm.same_string ("AOU") then l_mo := 08
|
elseif l_mmm.same_string ("AUG") then l_mo := 08
|
||||||
elseif l_mmm.same_string ("SEP") then l_mo := 09
|
elseif l_mmm.same_string ("SEP") then l_mo := 09
|
||||||
elseif l_mmm.same_string ("OCT") then l_mo := 10
|
elseif l_mmm.same_string ("OCT") then l_mo := 10
|
||||||
elseif l_mmm.same_string ("NOV") then l_mo := 11
|
elseif l_mmm.same_string ("NOV") then l_mo := 11
|
||||||
@@ -905,7 +905,7 @@ feature {NONE} -- Implementation
|
|||||||
invariant
|
invariant
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2013, Jocelyn Fiat, Eiffel Software and others"
|
copyright: "2011-2015, Jocelyn Fiat, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
23
library/server/ewsgi/package.iron
Normal file
23
library/server/ewsgi/package.iron
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
package ewsgi
|
||||||
|
|
||||||
|
project
|
||||||
|
ewsgi = "ewsgi-safe.ecf"
|
||||||
|
ewsgi = "ewsgi.ecf"
|
||||||
|
ewsgi_spec = "ewsgi_spec-safe.ecf"
|
||||||
|
ewsgi_spec = "ewsgi_spec.ecf"
|
||||||
|
connector_cgi = "connectors/cgi/cgi-safe.ecf"
|
||||||
|
connector_cgi = "connectors/cgi/cgi.ecf"
|
||||||
|
connector_libfcgi = "connectors/libfcgi/libfcgi-safe.ecf"
|
||||||
|
connector_libfcgi = "connectors/libfcgi/libfcgi.ecf"
|
||||||
|
connector_nino = "connectors/nino/nino-safe.ecf"
|
||||||
|
connector_nino = "connectors/nino/nino.ecf"
|
||||||
|
connector_null = "connectors/null/null-safe.ecf"
|
||||||
|
connector_null = "connectors/null/null.ecf"
|
||||||
|
|
||||||
|
note
|
||||||
|
title: EWSGI
|
||||||
|
description: EWSGI specification, and a few connectors.
|
||||||
|
tags: web, httpd, ewf
|
||||||
|
license: Eiffel Forum v2
|
||||||
|
|
||||||
|
end
|
||||||
@@ -1902,7 +1902,7 @@ feature -- URL Utility
|
|||||||
elseif spos > 0 then
|
elseif spos > 0 then
|
||||||
i := spos
|
i := spos
|
||||||
end
|
end
|
||||||
spos := l_rq_uri.substring_index (path_info, i)
|
spos := l_rq_uri.substring_index (percent_encoded_path_info, i)
|
||||||
if spos > 0 then
|
if spos > 0 then
|
||||||
l_base_url := l_rq_uri.substring (1, spos - 1)
|
l_base_url := l_rq_uri.substring (1, spos - 1)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -319,8 +319,8 @@ feature -- Header output operation: helpers
|
|||||||
feature -- Header add cookie
|
feature -- Header add cookie
|
||||||
|
|
||||||
add_cookie (a_cookie: WSF_COOKIE)
|
add_cookie (a_cookie: WSF_COOKIE)
|
||||||
-- Add a Set-Cookie header field to the response, iff there is not exist
|
-- Add a Set-Cookie header field to the response,
|
||||||
-- a Set-Cookie header field with the same cookie-name.
|
-- if no Set-Cookie header field already use same cookie-name.
|
||||||
--| Servers SHOULD NOT include more than one Set-Cookie header field in
|
--| Servers SHOULD NOT include more than one Set-Cookie header field in
|
||||||
--| the same response with the same cookie-name.
|
--| the same response with the same cookie-name.
|
||||||
local
|
local
|
||||||
@@ -328,7 +328,8 @@ feature -- Header add cookie
|
|||||||
do
|
do
|
||||||
across
|
across
|
||||||
internal_header.headers as ic
|
internal_header.headers as ic
|
||||||
until l_same_cookie_name
|
until
|
||||||
|
l_same_cookie_name
|
||||||
loop
|
loop
|
||||||
if ic.item.starts_with ("Set-Cookie:") then
|
if ic.item.starts_with ("Set-Cookie:") then
|
||||||
l_same_cookie_name := has_cookie_name (ic.item, a_cookie.name)
|
l_same_cookie_name := has_cookie_name (ic.item, a_cookie.name)
|
||||||
@@ -544,23 +545,28 @@ feature -- Error reporting
|
|||||||
|
|
||||||
feature {NONE} -- Implemenation
|
feature {NONE} -- Implemenation
|
||||||
|
|
||||||
has_cookie_name (a_cookie_line, a_cookie_name: READABLE_STRING_32 ): BOOLEAN
|
has_cookie_name (a_cookie_line, a_cookie_name: READABLE_STRING_GENERAL): BOOLEAN
|
||||||
-- Has the cookie line `a_cookie_line', the cookie name `a_cookie_name'?
|
-- Has the cookie line `a_cookie_line', the cookie name `a_cookie_name'?
|
||||||
local
|
local
|
||||||
i,j: INTEGER
|
i,j,n: INTEGER
|
||||||
do
|
do
|
||||||
Result := False
|
|
||||||
i := a_cookie_line.index_of ('=', 1)
|
|
||||||
j := a_cookie_line.index_of (':', 1)
|
j := a_cookie_line.index_of (':', 1)
|
||||||
|
if j > 0 then
|
||||||
if i > j and j > 0 then
|
i := a_cookie_line.index_of ('=', 1)
|
||||||
|
if i > j then
|
||||||
i := i - 1
|
i := i - 1
|
||||||
j := j + 1
|
j := j + 1
|
||||||
from until not a_cookie_line[j].is_space loop
|
-- Skip spaces.
|
||||||
|
from
|
||||||
|
n := a_cookie_line.count
|
||||||
|
until
|
||||||
|
j > n or not a_cookie_line[j].is_space
|
||||||
|
loop
|
||||||
j := j + 1
|
j := j + 1
|
||||||
end
|
end
|
||||||
if a_cookie_name.same_characters (a_cookie_line, j, i, 1) then
|
if j > n then
|
||||||
Result := True
|
Result := a_cookie_name.same_characters (a_cookie_line, j, i, 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -72,12 +72,22 @@ feature -- Change
|
|||||||
|
|
||||||
set_value (v: detachable WSF_VALUE)
|
set_value (v: detachable WSF_VALUE)
|
||||||
-- Set value `v' if applicable to Current
|
-- Set value `v' if applicable to Current
|
||||||
|
local
|
||||||
|
l_found: BOOLEAN
|
||||||
do
|
do
|
||||||
if attached {ITERABLE [WSF_VALUE]} v as lst then
|
if attached {ITERABLE [WSF_VALUE]} v as lst then
|
||||||
across
|
across
|
||||||
lst as c
|
lst as c
|
||||||
|
until
|
||||||
|
l_found
|
||||||
loop
|
loop
|
||||||
|
if attached {WSF_STRING} c.item as s and then is_same_value (s.value) then
|
||||||
set_checked_by_value (c.item)
|
set_checked_by_value (c.item)
|
||||||
|
l_found := True
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if not l_found then
|
||||||
|
set_checked (False)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
set_checked_by_value (v)
|
set_checked_by_value (v)
|
||||||
|
|||||||
@@ -79,12 +79,12 @@ echo Install library: http
|
|||||||
echo Install library: content_negotiation
|
echo Install library: content_negotiation
|
||||||
%COPYCMD% %TMP_DIR%\library\network\protocol\content_negotiation %TMP_CONTRIB_DIR%\library\network\protocol\content_negotiation
|
%COPYCMD% %TMP_DIR%\library\network\protocol\content_negotiation %TMP_CONTRIB_DIR%\library\network\protocol\content_negotiation
|
||||||
echo Install library: http_authorization
|
echo Install library: http_authorization
|
||||||
%SAFE_MD% %TMP_CONTRIB_DIR%\library\network\authentication
|
%SAFE_MD% %TMP_CONTRIB_DIR%\library\web\authentication
|
||||||
%COPYCMD% %TMP_DIR%\library\server\authentication\http_authorization %TMP_CONTRIB_DIR%\library\network\authentication\http_authorization
|
%COPYCMD% %TMP_DIR%\library\server\authentication\http_authorization %TMP_CONTRIB_DIR%\library\web\authentication\http_authorization
|
||||||
|
|
||||||
echo Install library: openid
|
echo Install library: openid
|
||||||
%SAFE_MD% %TMP_CONTRIB_DIR%\library\security
|
%SAFE_MD% %TMP_CONTRIB_DIR%\library\web\authentication
|
||||||
%COPYCMD% %TMP_DIR%\library\security\openid %TMP_CONTRIB_DIR%\library\security\openid
|
%COPYCMD% %TMP_DIR%\library\security\openid %TMP_CONTRIB_DIR%\library\web\authentication\openid
|
||||||
|
|
||||||
echo Install library: uri_template
|
echo Install library: uri_template
|
||||||
%COPYCMD% %TMP_DIR%\library\text\parser\uri_template %TMP_CONTRIB_DIR%\library\text\parser\uri_template
|
%COPYCMD% %TMP_DIR%\library\text\parser\uri_template %TMP_CONTRIB_DIR%\library\text\parser\uri_template
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ echo Uninstall library: http
|
|||||||
echo Uninstall library: content_negotiation
|
echo Uninstall library: content_negotiation
|
||||||
%RDCMD% %TMP_CONTRIB_DIR%\library\network\protocol\content_negotiation
|
%RDCMD% %TMP_CONTRIB_DIR%\library\network\protocol\content_negotiation
|
||||||
echo Uninstall library: http_authorization
|
echo Uninstall library: http_authorization
|
||||||
%RDCMD% %TMP_CONTRIB_DIR%\library\network\authentication\http_authorization
|
%RDCMD% %TMP_CONTRIB_DIR%\library\web\authentication\http_authorization
|
||||||
echo Uninstall library: security\openid
|
echo Uninstall library: security\openid
|
||||||
%RDCMD% %TMP_CONTRIB_DIR%\library\security\openid
|
%RDCMD% %TMP_CONTRIB_DIR%\library\web\authentication\openid
|
||||||
echo Uninstall library: uri_template
|
echo Uninstall library: uri_template
|
||||||
%RDCMD% %TMP_CONTRIB_DIR%\library\text\parser\uri_template
|
%RDCMD% %TMP_CONTRIB_DIR%\library\text\parser\uri_template
|
||||||
echo Uninstall library: runtime\process\notification_email
|
echo Uninstall library: runtime\process\notification_email
|
||||||
|
|||||||
Reference in New Issue
Block a user