Emmanuel Briot
9bf04443ea
Add support for websocket clients
2018-10-15 09:04:40 +02:00
Emmanuel Briot
66d5ef1aec
(Initialize): new subprogram
...
Extract code from Create, to be used when creating websocket client
2018-10-15 08:57:30 +02:00
Emmanuel Briot
0996ee9445
(Send): new parameter From_Client
...
When a client sends a message to a websocket server, it must mask the
data in the frame. This isn't the case when a server sends back a
response.
2018-10-15 08:57:28 +02:00
Emmanuel Briot
efc9f29ebb
(Get_WebSocket_Accept): new subprogram
...
To avoid code duplication when implementing websocket clients, move the
code that computes the Accept header to a separate subprogram
2018-10-15 08:56:38 +02:00
Emmanuel Briot
144caa0d5c
Move some code from websockets registry to parent package
...
To avoid code duplication when implementing websocket clients, this
commit moves WebSocket_Exception and part of the Messages task to
aws-net-websocket.ads.
No change of behavior, though Read_Message was made into a generic
function to make it usable outside of the context of a task.
2018-10-15 08:54:52 +02:00
Emmanuel Briot
48521230e6
(Get_Socket): new subprogram
...
This is needed when implementing new http-based protocols, like
websockets.
2018-10-09 18:24:32 +02:00
Emmanuel Briot
1d4d231602
Do not duplicate Connection header if already present
...
(Open_Send_Common_Headers): When the Connection header is already set by
the user (for instance as part as connecting to a websockets server
using an "upgrade" connection), we must not add a duplicate header.
2018-10-09 18:24:26 +02:00
Bob Plested
2aee07f59c
Changed gpr files to call gnat12
2018-09-24 19:49:30 +02:00
Dmitriy Anisimkov
29ff04e156
Show timeout value in exception message
...
R921-037
2018-09-24 19:44:18 +02:00
Dmitriy Anisimkov
5984bdce9e
Do not use sha1 in test certificates.
...
GNUTLS 3.6.2 does not consider it secure.
2018-09-24 19:43:25 +02:00
Dmitriy Anisimkov
d8ad121e08
One more possible SSL error message in test output.
2018-09-24 17:50:02 +02:00
Pascal Obry
06b1921570
Merge branch 'po/chunked-form'
...
* po/chunked-form:
If Transfer-Encoding is chunked we do have a body to parse.
Minor reformatting.
2018-09-22 16:31:24 +02:00
Pascal Obry
906bc93cf2
If Transfer-Encoding is chunked we do have a body to parse.
...
Add check for chunked Transfer-Encoding when deciding if we
have a body to parse.
Add corresponding regression test.
Fixes R918-031.
2018-09-21 19:29:49 +02:00
Pascal Obry
2d5a3ac74a
Minor reformatting.
2018-09-21 18:03:41 +02:00
Pascal Obry
fe10c57d16
Merge branch 'po/tz-format'
...
* po/tz-format:
Add a second time-zone format for a date/time.
2018-09-18 19:51:25 +02:00
Pascal Obry
f8a76cc982
Add a second time-zone format for a date/time.
...
For R913-025.
2018-09-16 14:56:17 +02:00
Pascal Obry
0fab6e68a0
Bump version given recent work on interoperability with Apache CXF.
...
Part of R724-004.
2018-08-23 17:56:58 +02:00
Pascal Obry
d11339d1e9
Merge branch 'httponly-cookie'
...
* httponly-cookie:
Add support for HttpOnly cookie attribute.
Code clean-up for cookie generation.
2018-08-09 19:25:20 +02:00
Pascal Obry
fd9f9b90c9
Add support for HttpOnly cookie attribute.
...
Add corresponding regression test.
For R806-009.
2018-08-09 10:25:24 +02:00
Pascal Obry
7e8bbf3ffa
Code clean-up for cookie generation.
...
We now ensure that we do not terminate with a ';'.
Motivated by R806-009.
2018-08-09 10:25:24 +02:00
Pascal Obry
a68687dc51
Merge branch 'wsdl-literal'
...
* wsdl-literal:
Removes obsolete schema definition generation.
Finaly rewrite part of document/literal SOAP payload parsing.
Fix array detection circuitry in SOAP payload.
Generate arrayType attribute only for encoded encoding.
Record the routine encoding in the state.
Fix record in array in document/literal binding.
Rename E_Name to ET_Name.
2018-08-04 08:41:13 +02:00
Pascal Obry
eebbc57bce
Removes obsolete schema definition generation.
...
Those old schema definitions are not used anymore since the
rework of the schema mapping (fully qualified names).
Continued work for R724-004.
2018-08-03 22:32:01 +02:00
Pascal Obry
db67367f1e
Finaly rewrite part of document/literal SOAP payload parsing.
...
This new version now uses fully qualified name to avoid possible
ambiguity and moreover it makes the implementation simpler.
Motivated by R724-004.
2018-08-03 22:32:01 +02:00
Pascal Obry
ab4c7da978
Fix array detection circuitry in SOAP payload.
...
The array name is now based on schema for document binding. And the
check for an array is also conducted in the schema in last resort.
Indeed a array in document/literal binding does not have the soapenc
attributes.
Part of R724-004.
2018-08-03 22:32:01 +02:00
Pascal Obry
bbe7973f42
Generate arrayType attribute only for encoded encoding.
...
Part of R724-004.
2018-08-03 22:32:01 +02:00