Jocelyn Fiat
5ac47fff05
updated README.md
2013-01-31 16:34:43 +01:00
Jocelyn Fiat
56df2b085e
Fixing global EWF compilation
2013-01-31 16:21:16 +01:00
Jocelyn Fiat
a5c9329ada
Fixing global EWF compilation
2013-01-31 16:20:38 +01:00
Jocelyn Fiat
ce469b6ede
Updated CMS code.
...
Separated code to have a lib and an example.
Improved design, fixed a few issues related to folder location.
This is still experimental and require more work to be really friendly to use.
2013-01-31 15:33:24 +01:00
Jocelyn Fiat
40ea982293
Added ANSI C date time string format support in HTTP_DATE.
2013-01-31 15:30:39 +01:00
Jocelyn Fiat
d172dedf31
Fixed HTTP_DATE for GMT+ offset (integer value)
2013-01-31 13:54:10 +01:00
Jocelyn Fiat
20d5798444
Added HTTP_DATE to ease http date manipulation and optimize code rather than using EiffelTime's code facilities.
...
Added autotests to `http' lib.
2013-01-31 11:23:11 +01:00
Jocelyn Fiat
4369637140
using ARRAYED_LIST rather than LINKED_LIST
2013-01-30 22:40:29 +01:00
Jocelyn Fiat
860959879c
Removed eel and eapml contrib/library from EWF
...
Since there are available from $ISE_LIBRARY
2013-01-23 18:13:22 +01:00
Jocelyn Fiat
8f232bd627
Added `append_string_to' to HTTP_HEADER
2013-01-23 16:23:10 +01:00
Jocelyn Fiat
393a4fc1bf
Removed useless dependencies on other lib.
2013-01-23 16:22:03 +01:00
Jocelyn Fiat
d1873d9645
Merge pull request #26 from oligot/no-context
...
Use execution_variable instead of context
2013-01-23 02:00:38 -08:00
Olivier Ligot
10c02219e3
Use execution_variable instead of context
...
This is mainly to be compatibe with other classes API.
In a lot of classes, we define methods like this:
```Eiffel
method (req: WSF_REQUEST; res: WSF_RESPONSE)
do
...
end
```
With the context, the signature becomes:
```Eiffel
method (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
do
...
end
```
So, I can't build a filter chain where one filter is with context
and one is without context (I can't call
WSF_FILTER.set_next (a_next: WSF_FILTER) with a filter that is a
descendant of WSF_CONTEXT_HANDLER).
Moreover, having to play with generic types just to pass some
data from one filter to another is a bit overkill imho.
Because this is really what I use contexts for:
to pass data from one filter to the next one.
Regarding execution_variable and strong typing, if we want to achieve these,
I realize we could write a class with one getter and one setter like this:
```Eiffel
class
TYPED_DATA
feature -- Access
user (req: WSF_REQUEST): detachable USER
do
if attached {USER} req.execution_variable ("user") as l_user then
Result := l_user
end
end
feature -- Element change
set_user (req: WSF_REQUEST; a_user: USER)
do
req.set_execution_variable ("user", a_user)
end
```
Now, I realize this is a major change since the last time we talked about this,
but at the end, after having played with both, I prefer the one with
execution_variable.
2013-01-23 10:20:03 +01:00
Jocelyn Fiat
acd942b720
Minor optimization in HTTP_HEADER
2013-01-22 21:13:40 +01:00
Jocelyn Fiat
d2767fd020
Merge pull request #24 from oligot/header-values
...
Added {HTTP_HEADER}.put_header_key_values
2013-01-22 11:57:14 -08:00
Olivier Ligot
c89a3f007f
Added {HTTP_HEADER}.put_header_key_values
...
This is mainly a refactoring that is useful for an upcoming PR
regarding CORS (smaller patches are better...)
Note that this also fixes a small typo where an extra space was
added when calling {HTTP_HEADER}.put_allow
2013-01-22 17:09:23 +01:00
Jocelyn Fiat
069dc3b6fd
Merge pull request #23 from oligot/readonly-ecf
...
Filter example: all libraries are now readonly
2013-01-22 07:47:08 -08:00
Olivier Ligot
af58d87d79
Filter example: all libraries are now readonly
2013-01-22 16:42:53 +01:00
Jocelyn Fiat
65d7545320
Merge pull request #21 from oligot/typo
...
Fix a small typo: you are instead of your are
2013-01-07 03:00:16 -08:00
Olivier Ligot
aadfdec1ae
Fix a small typo: you are instead of your are
2013-01-07 11:11:42 +01:00
Jocelyn Fiat
1d8cce9947
Added http_authorization which is now needed by example filter.
2012-12-22 16:36:36 +01:00
Jocelyn Fiat
e16d96f613
minor changes
2012-12-22 16:18:52 +01:00
Jocelyn Fiat
3376ec1288
Keep compatibility with 7.1
...
thus not unicode compliant
2012-12-21 09:54:22 +01:00
Jocelyn Fiat
4ff7b33471
using socket_ok does not sounds ok on linux
2012-12-21 07:19:13 +01:00
Jocelyn Fiat
a7e6651806
Use WSF_REQUEST.read_input_data_into (buf)
2012-12-20 22:57:38 +01:00
Jocelyn Fiat
facdfd0b4a
added WSF_SUPPORT.environment_item
2012-12-20 18:37:13 +01:00
Jocelyn Fiat
e4270b6297
Added is_available on HTTP_CLIENT_SESSION mainly to check if libcurl is available.
2012-12-20 18:36:58 +01:00
Jocelyn Fiat
a362e7d9c6
Avoid calling ANY.print, prefer io.error.put_string
...
Fixed obsolete calls.
2012-12-20 18:32:56 +01:00
Jocelyn Fiat
d46fbeaedd
Merge branch 'master' of https://github.com/Eiffel-World/EiffelWebNino
2012-12-20 15:44:08 +01:00
Jocelyn Fiat
ef9494e7e8
removed unused local
2012-12-20 15:43:01 +01:00
Jocelyn Fiat
394ca05579
Added support for server_name in nino, and openshift
2012-12-20 15:41:18 +01:00
Jocelyn Fiat
b4c8c70360
updated doc related to git
2012-12-20 15:40:42 +01:00
Jocelyn Fiat
633a5afe7f
Merge branch 'master' of https://github.com/Eiffel-World/EiffelWebNino
2012-12-20 15:39:27 +01:00
Jocelyn Fiat
00d6caba93
Added support for server name
2012-12-20 15:35:48 +01:00
Jocelyn Fiat
c058012313
updated conneg .ecf
2012-12-20 10:18:50 +01:00
Jocelyn Fiat
1e6d273254
Added openshift connector classes (for experimentation)
2012-12-20 10:09:49 +01:00
Jocelyn Fiat
27d2308d6f
Added comment to self documentation features
2012-12-20 10:09:26 +01:00
Jocelyn Fiat
619be9a8cd
Added a few library_target to .ecf to be able to build the tests/all-safe.ecf
...
that enables us to check quickly the compilation state of EWF, and also perform refactorying over many projects.
2012-12-19 16:45:45 +01:00
Jocelyn Fiat
3d8e277003
Fixed WSF_TRACE_RESPONSE which was overwritting previously prepared content.
2012-12-19 16:43:07 +01:00
Jocelyn Fiat
aa65c16957
Breaking changes:
...
added `a_request_methods' argument to WSF_ROUTER_SELF_DOCUMENTATION_HANDLER.mapping_documentation
added similar argument to WSF_ROUTER_SELF_DOCUMENTATION_ROUTER_MAPPING.documentation
Renamed WSF_ROUTER_METHODS as WSF_REQUEST_METHODS
Enhanced WSF_REQUEST_METHODS with new has_... function
Added WSF_ROUTER_VISITOR and WSF_ROUTER_ITERATOR that may be useful to iterate inside the router.
we may improve the implementation of the router using those visitors in the future.
Improved the WSF_DEFAULT_RESPONSE to embedded suggested items (typically based on pseudo self documented router)
2012-12-19 16:42:26 +01:00
Jocelyn Fiat
021f0eeaec
Updated documentation output
2012-12-19 14:35:47 +01:00
Jocelyn Fiat
7193ce93f4
Fixed issue in WSF_REQUEST.read_input_data_into when the content is zero
...
Cleaned the WGI_CHUNKED_INPUT_STREAM and provides access to last extension, last trailer, ...
Improved WSF_TRACE_RESPONSE to support tracing chunked input back to the client.
2012-12-19 12:47:35 +01:00
Jocelyn Fiat
59f19dc52f
Fixed WSF_RESPONSE chunk transfer implementation
...
and also the optional extension `a_ext' should now include the ';'
Now HTTP_HEADER is an ITERABLE [READABLE_STRING_8]
2012-12-19 11:45:59 +01:00
Jocelyn Fiat
f3aeb67e16
changed UUID since this is the same a restbuckCRUD example.
2012-12-19 00:26:11 +01:00
Jocelyn Fiat
17f16c35ad
Fixed various assertions.
...
Improved autotests
Added target 'server' to be able to run the server outside the test process.
2012-12-19 00:10:31 +01:00
Jocelyn Fiat
ffe87ccbe9
Fixed reading chunked input data
...
When retrieving data block by block, use 8_192 instead of 1_024 (since 1_024 is too small most of the time)
2012-12-18 23:40:26 +01:00
Jocelyn Fiat
0d87c7939a
Fixed sending of chunk, especially the ending where there is an optional Trailer, and a mandatory final CRLF
...
Now put_chunk does not support anymore empty chunk, and thus does not call put_chunk_end if ever it is called with empty chunk content.
Fixed the `transfered_content_length' when dealing with chunk transfert encoding
2012-12-18 23:34:55 +01:00
Jocelyn Fiat
de93ce32ff
Added logger response wrapper, this is mainly to be able to save any response message to a file.
...
(debugging purpose)
2012-12-18 23:28:04 +01:00
Jocelyn Fiat
71b1bad53d
Added basic support for "Expect" http header
...
i.e: WSF_REQUEST.http_expect: detachable READABLE_STRING_8
Added WSF_REQUEST.request_time_stamp: INTEGER_64
2012-12-18 23:25:54 +01:00
Jocelyn Fiat
82c779fd60
fixed autotests compilation
2012-12-17 17:53:06 +01:00
Jocelyn Fiat
68ec6fb29c
Made WSF_REQUEST.is_content_type_accepted safer.
2012-12-14 15:52:54 +01:00
Jocelyn Fiat
cc570f5abf
Added WSF_DEFAULT_*_RESPONSE
...
Fixed the method not allowed by setting the Allow: header
2012-12-14 15:52:35 +01:00
Jocelyn Fiat
8e31950285
Improved HTTP_AUTHORIZATION
2012-12-14 15:51:34 +01:00
Jocelyn Fiat
4612fdb5de
Added Authorization and Allow
...
Added is_empty and count
2012-12-14 15:51:12 +01:00
Jocelyn Fiat
6eb0ebd873
Merge pull request #16 from colin-adams/master
...
Implementation for automatic HEAD and first pass at HTTP 1.1 conformance contracts
2012-12-13 13:58:42 -08:00
Jocelyn Fiat
4a65015988
removed unused local variables
2012-12-13 18:43:15 +01:00
Jocelyn Fiat
e7f458fd50
added code that may be used to avoid breaking compatibility with new Eiffel Studio 7.2
...
This is experimental for now.
2012-12-13 18:16:01 +01:00
Jocelyn Fiat
b7505e67b8
Added to WSF_REQUEST
...
- raw_header_data: like meta_string_variable
- read_input_data_into (buf: STRING)
- is_content_type_accepted (a_content_type: READABLE_STRING_GENERAL): BOOLEAN
Changed raw_input_data to return IMMUTABLE_STRING_8
Added WSF_METHOD_NOT_ALLOWED_RESPONSE
Added WSF_TRACE_RESPONSE to respond TRACE request
Now Not_found response return html content if the client accepts, other text/plain
Implemented TRACE response, and Method not allowed as implementation of WSF_ROUTED_SERVICE.execute_default
2012-12-13 17:29:46 +01:00
Jocelyn Fiat
ff7d963d55
Fixed WGI_INPUT_STREAM read_to_string and append_to_string
2012-12-13 17:24:55 +01:00
Jocelyn Fiat
d264899e8b
Merge branch 'master' of https://github.com/eiffelhub/json
2012-12-13 12:02:27 +01:00
Jocelyn Fiat
cb034fc94e
Added missing "context" classes for uri and starts_with mapping+handler (and helper classes).
...
So that it is address more needs.
Factorized code between "context" and non context classes.
2012-12-13 12:01:24 +01:00
Jocelyn Fiat
3e976768ac
Merge pull request #3 from jvelilla/master
...
Fixed documentation URI
2012-12-12 09:58:35 -08:00
Jocelyn Fiat
dc16bcc87b
Merge pull request #4 from oligot/fix_json_object_hash_code
...
Fix {JSON_OBJECT}.hash_code implementation
2012-12-12 09:58:11 -08:00
Jocelyn Fiat
025457747b
Merge pull request #20 from oligot/fix_fcgi_safe
...
use /usr/lib/libfcgi.so instead of /usr/local/lib/libfcgi.so
2012-12-12 05:59:02 -08:00
Olivier Ligot
ed325f81e1
use /usr/lib/libfcgi.so instead of /usr/local/lib/libfcgi.so
...
This was already fixed in libfcgi.ecf
(commit 65a998cec3 )
This fixes the libfcgi-safe.ecf file
2012-12-12 13:34:50 +01:00
Colin Adams
eafb04719d
Actioned Jocelyns comments re. a_req and a_res
2012-12-11 19:26:06 +00:00
Olivier Ligot
233de09c48
Fix {JSON_OBJECT}.hash_code implementation
...
Don't call {HASH_TABLE}.item_for_iteration when {HASH_TABLE}.off
Use {HASH_TABLE}.out instead
2012-12-10 17:39:22 +01:00
Jocelyn Fiat
df0d3e584c
Fixed issue related to vars that are already converted to WSF_TABLE
2012-12-10 11:00:06 +01:00
Jocelyn Fiat
903495175d
Get rid of obsolete scripts
...
(we do not use git submodule anymore, so this is much easier .. for the users)
2012-12-10 10:59:57 +01:00
Colin Adams
365da7e30a
merged from upstream
2012-12-08 08:25:47 +00:00
Jocelyn Fiat
e20cb6b6ed
make it compiles with EiffelStudio 7.1 and 7.2
2012-12-07 14:55:38 +01:00
Colin Adams
58f26fdc1b
Revert do_get_head patch
2012-12-06 19:48:13 +00:00
Jocelyn Fiat
926ae823ac
compile all-safe.ecf as windows or unix, even if not on Windows or unix
2012-12-05 22:39:43 +01:00
Jocelyn Fiat
39c3e8c5cf
corrected null connector ecf files
2012-12-05 22:39:05 +01:00
Jocelyn Fiat
7308a76ac8
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-12-05 22:31:19 +01:00
Jocelyn Fiat
9499d4aa59
added tests\all-safe.ecf to compile most of EWF's lib, to quickly check the compilation state
2012-12-05 22:30:28 +01:00
Jocelyn Fiat
20c94e927d
use libfcgi(-safe).ecf rather than fcgi(-safe).ecf
2012-12-05 22:30:26 +01:00
Jocelyn Fiat
5de14b114e
Provide a way to log into a file, rather than just console output
...
Minor optimization for WSF_LOGGING_FILTER
2012-12-05 22:30:24 +01:00
Jocelyn Fiat
a9f3ea7886
Prepare upcoming support for unicode environment variables
2012-12-05 22:30:21 +01:00
Jocelyn Fiat
d445559890
removed fcgi(-safe).ecf files ... since there renamed libfcgi(-safe).ecf
2012-12-05 22:30:19 +01:00
Olivier Ligot
4ed8365afe
ise_wizard Unix shell scripts
2012-12-05 22:30:16 +01:00
Olivier Ligot
a6ca54f958
Fix ise_wizard
...
* ewf.ini was used instead of template.ecf as configuration file
* remove initialize_router otherwise the compilation failed
* remove unused variables
2012-12-05 22:30:14 +01:00
Olivier Ligot
075ac1d628
Logging filter
...
The logging filter is now part of EWF core (before it was only available in
the filter example) and can therefore be reused by others needing it.
Note that this is a first implementation. It can certainly be improved in
the future to support more fine grained logging.
2012-12-05 22:30:12 +01:00
Jocelyn Fiat
2ed861e3d9
added tests\all-safe.ecf to compile most of EWF's lib, to quickly check the compilation state
2012-12-05 22:26:58 +01:00
Jocelyn Fiat
e1dffa542e
use libfcgi(-safe).ecf rather than fcgi(-safe).ecf
2012-12-05 22:21:36 +01:00
Jocelyn Fiat
43df8f573b
Provide a way to log into a file, rather than just console output
...
Minor optimization for WSF_LOGGING_FILTER
2012-12-05 22:20:56 +01:00
Jocelyn Fiat
78b161df16
Prepare upcoming support for unicode environment variables
2012-12-05 22:19:59 +01:00
Jocelyn Fiat
bbf63c1cc0
removed fcgi(-safe).ecf files ... since there renamed libfcgi(-safe).ecf
2012-12-05 17:02:32 +01:00
Jocelyn Fiat
25f6528d2e
Merge pull request #17 from oligot/logging_filter
...
Logging filter
2012-12-05 08:00:43 -08:00
Jocelyn Fiat
21ec257091
Merge pull request #19 from oligot/ise_wizard_sh
...
ise_wizard Unix shell scripts
2012-12-04 06:06:27 -08:00
Olivier Ligot
eb676bd14b
ise_wizard Unix shell scripts
2012-12-04 14:42:09 +01:00
Jocelyn Fiat
9770af09b4
Merge pull request #18 from oligot/fix_ise_wizard
...
Fix ise_wizard
2012-12-04 03:01:41 -08:00
Olivier Ligot
e9376b5d16
Fix ise_wizard
...
* ewf.ini was used instead of template.ecf as configuration file
* remove initialize_router otherwise the compilation failed
* remove unused variables
2012-12-03 17:37:26 +01:00
Olivier Ligot
fc8188aeb1
Logging filter
...
The logging filter is now part of EWF core (before it was only available in
the filter example) and can therefore be reused by others needing it.
Note that this is a first implementation. It can certainly be improved in
the future to support more fine grained logging.
2012-12-03 16:29:12 +01:00
Jocelyn Fiat
156406f9ac
Fixed various compilation issue with new self documentation
...
Improved the self documentation handler to provide a make_hidden creation procedure
2012-12-03 12:20:12 +01:00
Jocelyn Fiat
e0166a4c44
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-12-03 11:30:47 +01:00
Jocelyn Fiat
c2fa3cd70a
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-12-03 11:13:59 +01:00
Jocelyn Fiat
aa0207bece
updated ecf path
2012-12-03 11:12:53 +01:00
Jocelyn Fiat
125d44ff67
Added debug clause to detect in WSF_ROUTER.map_with_request_methods the existing conflicts with similar mapping.
...
Added smart handling of HEAD request.
Exported some internal features of WSF_REQUEST and WSF_RESPONSE to respectively WSF_REQUEST_EXPORTER and WSF_RESPONSE_EXPORTER
2012-11-26 22:58:48 +01:00
Jocelyn Fiat
bdee22f647
added debug_output to WSF_ROUTER_MAPPING
2012-11-26 22:37:44 +01:00
Jocelyn Fiat
8b5353df0a
Avoid using INDEXABLE_ITERATION_CURSOR.is_last
2012-11-26 16:06:08 +01:00
Jocelyn Fiat
f18ef477b8
Included the library base(-safe).ecf which was forgotten by mistake.
2012-11-25 21:30:10 +01:00
Jocelyn Fiat
63b4f6509e
Fixed compilation due to recent changes from http_client and corrected design.
2012-11-25 17:28:27 +01:00
Colin Adams
a9d83f97a8
Completed first pass for HTTP 1.1 conformace contracts
2012-11-24 15:45:42 +00:00
Colin Adams
68cd78d87d
Forced HEAD when GET requested
2012-11-24 14:13:38 +00:00
Colin Adams
496df96f75
First postconditions relating to response codes added
2012-11-24 14:02:26 +00:00
Colin Adams
17ce1be582
Added framework for HTTP-conforming contracts
2012-11-24 11:55:10 +00:00
Jocelyn Fiat
b7379a6289
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-11-23 22:52:57 +01:00
Jocelyn Fiat
f0c5cf20f8
Update README.md
2012-11-23 22:52:20 +01:00
Jocelyn Fiat
5f152cff5a
Update README.md
2012-11-23 22:52:17 +01:00
Jocelyn Fiat
af07986eec
New design for self documented router.
...
The documentation is built only on demand.
A mapping entry can be hidden for the documentation
One can change the status code when building itself the WSF_ROUTER_SELF_DOCUMENTATION_MESSAGE
2012-11-23 22:49:11 +01:00
Jocelyn Fiat
78ceebf979
Update README.md
2012-11-23 18:56:44 +01:00
Jocelyn Fiat
108ab43031
Made encoder and error library compilable with 6.8
2012-11-23 18:56:09 +01:00
Jocelyn Fiat
ca1fb5a4ce
Update README.md
2012-11-23 18:37:39 +01:00
Jocelyn Fiat
c654759d8e
Added SHARED_... classes for encoders (html, url, xml, json, ...)
2012-11-23 18:06:56 +01:00
Jocelyn Fiat
f817008bcd
Do not use {INDEXABLE_ITERATION_CURSOR}.is_last since it is added from EiffelStudio v7.2
2012-11-23 18:04:21 +01:00
Jocelyn Fiat
66ac29b3fc
Updated signatures for the self documentated message
2012-11-23 15:59:56 +01:00
Jocelyn Fiat
dcb630ce98
Updated self documentation
2012-11-23 15:52:59 +01:00
Jocelyn Fiat
d8b6f80411
Added WSF_NOT_FOUND_RESPONSE to respond 404 Not found page
2012-11-23 15:52:39 +01:00
Jocelyn Fiat
9fcb897b0b
Allow to use WSF_ROUTER_SELF_DOCUMENTATION_MESSAGE without any WSF_ROUTER_SELF_DOCUMENTATION_HANDLER
...
i.e without any specific URL to this self documentation.
Added custom value such as header, footer, style css url ...
2012-11-23 14:12:13 +01:00
Jocelyn Fiat
5926bbc0c2
Fixed signature of WSF_MIME_HANDLER.handle
2012-11-23 12:39:16 +01:00
Jocelyn Fiat
52cc743997
Added WSF_ROUTER.has_item_associated_with_resource and item_associated_with_resource
...
Added WSF_ROUTER_MAPPING.associated_resource
Added WSF_ROUTER_SELF_DOCUMENTATION_HANDLER and WSF_ROUTER_SELF_DOCUMENTATION_MESSAGE to provide a self documentation for WSF_ROUTER (for now, only HTML)
2012-11-23 12:38:49 +01:00
Jocelyn Fiat
ee13393a91
Made WSF_ROUTER_METHODS.new_cursor an INDEXABLE_ITERATION_CURSOR which is richer than just ITERATION_CURSOR
2012-11-23 10:07:33 +01:00
Jocelyn Fiat
fdd40ff08d
minor change: reuse local variable
2012-11-21 09:48:58 +01:00
Jocelyn Fiat
86540814b3
Include the `url' in the http client response.
...
This way, we can get the real url used by the lib, especially when there are query parameters.
2012-11-21 09:48:28 +01:00
Jocelyn Fiat
504e013a74
removed "rest" from readme.md
2012-11-20 13:50:40 +01:00
Jocelyn Fiat
59316c9c65
Added WSF_ROUTER_ITEM to replace a structure represented with named TUPLE
...
Added debug_output to ease debugging
2012-11-20 13:49:40 +01:00
Jocelyn Fiat
6621da202d
Removed pseudo rest library from draft libraries.
2012-11-20 13:49:28 +01:00
Jocelyn Fiat
ead896e870
Updated git tips related to subtree to avoid weird issue when "pulling" subtree which was putting files in wrong locations.
2012-11-15 16:32:11 +01:00
Jocelyn Fiat
e65c2da528
Merge branch 'master' of https://github.com/eiffelhub/json
2012-11-15 16:29:02 +01:00
Jocelyn Fiat
ab84e5a7a0
Fixed message for exception_failed_to_convert_to_json
...
Fixed indentation
2012-11-15 16:18:28 +01:00
jvelilla
f17abb1679
Update Readme.txt
...
Fixed documentation URI
2012-11-15 08:26:51 -02:00
Jocelyn Fiat
814ea051f1
Fixed compilation
2012-10-23 13:09:26 +02:00
Jocelyn Fiat
56214129bd
Provide `server_url: STRING' that compute the http://server_name:port or https://...
...
using `server_name', `server_port', `server_protocol' and avoid using `http_host'
which is not reliable and could be cause of security issue.
2012-10-23 12:10:33 +02:00
Jocelyn Fiat
2c2e031944
Fixed Date: formatting, follow RFC 1123
2012-10-23 12:00:59 +02:00
Jocelyn Fiat
50d5254060
Added WSF_REQUEST_UTILITY_PROXY, that provides the WSF_REQUEST_UTILITY features to a class that implement request: WSF_REQUEST
2012-10-22 17:09:57 +02:00
Jocelyn Fiat
7dce121f8c
added REST_URI_TEMPLATE_ROUTING_HANDLER
2012-10-22 14:54:02 +02:00
Jocelyn Fiat
2e774f2e10
Added WSF_ROUTING_CONTEXT_HANDLER
2012-10-22 14:27:03 +02:00
Jocelyn Fiat
b781caa2c2
Fixing design of draft rest lib (which is going to be removed soon)
2012-10-22 14:04:42 +02:00
Jocelyn Fiat
84d1f20fd0
Do not set default status if a status is already set.
2012-10-22 11:15:52 +02:00
Jocelyn Fiat
fb3148aeea
Using anchor type to create the router
...
this is more flexible for eventual descendants redefining the router
2012-10-22 11:15:23 +02:00
Jocelyn Fiat
aa743c0a7d
Removed generic parameter in WSF_FILTER_HANDLER, since it is useless and make code heavy
...
Signed-off-by: Olivier Ligot <oligot@gmail.com >
Signed-off-by: Jocelyn Fiat <jfiat@eiffel.com >
2012-10-08 10:40:44 +02:00
Jocelyn Fiat
2d3151e45f
Removed unwanted commented line
2012-10-08 09:27:03 +02:00
Jocelyn Fiat
146fd3cc7d
Updated "filter" example
...
Signed-off-by: Olivier Ligot <oligot@gmail.com >
2012-10-08 09:24:19 +02:00
Jocelyn Fiat
016efaed15
Updated Copyright
2012-10-04 15:04:14 +02:00
Jocelyn Fiat
d9990df23f
updated copyright
2012-10-04 15:01:02 +02:00
Jocelyn Fiat
9333d9c5be
Updated filter example to demonstrate the use of context.
...
(note: this commit is a merged of pull request from Olivier Ligot, and changes from Jocelyn Fiat)
Signed-off-by: Jocelyn Fiat <jfiat@eiffel.com >
Signed-off-by: Olivier Ligot <oligot@gmail.com >
2012-10-04 15:00:44 +02:00
Jocelyn Fiat
55e4602faf
Fixed compilation for STARTS_WITH_ handler
2012-10-04 14:52:28 +02:00
Jocelyn Fiat
737213b44c
Added WSF_RESOURCE_CONTEXT_HANDLER_HELPER
2012-10-04 14:46:28 +02:00
Jocelyn Fiat
2f6a6cbf5f
Added notion of mapping factory, so one can implement a handler without having to implement new_mapping
...
Added filter context handler
Added WSF_STARTS_WITH_ROUTING_HANDLER and WSF_URI_ROUTING_HANDLER (in addition to the uri template version)
2012-10-04 14:31:03 +02:00
Jocelyn Fiat
f7615edec9
fixed wsf_extension path in filter-safe.ecf file
2012-10-03 15:54:22 +02:00
Jocelyn Fiat
68f548e7cb
Merge pull request #2 from jvelilla/master
...
Fix Assignment attempt and wsf_extension path in RestBucksCRUD
2012-10-02 03:38:30 -07:00
jvelilla
a0ebdb6098
Fixed wsf_extension.ecf path, in the example RestBucksCRUD.
...
Replace the assigment attempt with attached syntax
2012-10-02 07:12:42 -03:00
Jocelyn Fiat
6619349f7b
Fixed some configuration files (ecf)
...
Fixed various compilation issue
Fixed draft rest library (still experimental and should be removed in the future)
2012-10-01 12:04:17 +02:00
Jocelyn Fiat
e0a88aec26
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-09-28 14:54:01 +02:00
Jocelyn Fiat
58d4decc58
Added initial experimentation of a CMS built with Eiffel
2012-09-28 14:53:16 +02:00
Jocelyn Fiat
291bb3a33b
moved wsf_extension inside wsf/extension as wsf/wsf_extension.ecf
...
added wsf/session as wsf/wsf_session.ecf
In descendants of WSF_HANDLER , we can keep the result of new_mapping as WSF_ROUTER_MAPPING
2012-09-28 14:42:31 +02:00
Jocelyn Fiat
fed7b1d1e6
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-09-28 11:00:38 +02:00
Jocelyn Fiat
80c1cc1c0d
Fixed wizard generated code with new router design
2012-09-27 16:10:50 +02:00
Jocelyn Fiat
e01c5bec57
Reviewed the semantic of the handler context.
...
Adapted existing code to fit the new router design.
2012-09-27 15:09:41 +02:00
Jocelyn Fiat
cdb88059bc
Fixed Restbuck examples with new router design
2012-09-26 16:41:13 +02:00
Jocelyn Fiat
94a91fa4aa
added missing wsf_routing_filter
2012-09-26 09:45:33 +02:00
Jocelyn Fiat
28186efbe7
Applied new ROUTER design to the whole EWF project.
2012-09-25 23:18:17 +02:00
Jocelyn Fiat
0e1f67809c
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-09-20 10:31:04 +02:00
Jocelyn Fiat
0503e63209
Minor implementation changes (feature renaming, ... )
2012-09-19 10:50:38 +02:00
Jocelyn Fiat
ace897ea2b
New ROUTER design, much simpler, less generic, easier to extend, and now one can mix uri map, uri_template map and so on.
...
Update the "tutorial" example.
2012-09-19 10:50:27 +02:00
Jocelyn Fiat
e17f00cad6
Merge pull request #1 from GroupeS/fix_hash_table_converter
...
[FIX] Convertion from DS_HASH_TABLE keys to JSON
2012-09-13 08:55:32 -07:00
Olivier Ligot
6cd21c39eb
[FIX] Indentation
2012-09-12 22:01:13 +02:00
Jocelyn Fiat
66af07e28e
Merge pull request #2 from oligot/fix_test_compilation
...
[FIX] Unknown identifier 'unescaped_string'
2012-09-12 12:49:47 -07:00
Olivier Ligot
f361ce65c6
[FIX] Convertion from HASH_TABLE keys to JSON
2012-09-12 20:05:49 +02:00
Olivier Ligot
d01bccbc84
Merge branch 'master' into fix_hash_table_converter
2012-09-12 19:54:06 +02:00
Olivier Ligot
42b971f28e
[FIX] Unknown identifier 'unescaped_string'
2012-09-12 17:14:49 +02:00
Jocelyn Fiat
0f59535696
Added general_encoded_string (..) that accepts READABLE_STRING_GENERAL
2012-09-11 20:53:13 +02:00
Jocelyn Fiat
795f82d51f
added WSF_VALUE.is_empty: BOOLEAN
2012-09-10 16:28:25 +02:00
Jocelyn Fiat
fbd9cb9588
Added `HTML_ENCODER.general_encoded_string (s: READABLE_STRING_GENERAL): STRING_8'
...
(note: probably we should do similar change for all the encoders)
2012-09-10 09:36:27 +02:00
Jocelyn Fiat
0d8363aa3f
Fixed issue when applying URI_TEMPLATE result to WSF_REQUEST to populate path_parameters', now if we have table parameter for foo[]' .. we ignore any string parameter with same name `foo'
...
Also fixed issue where the encoded name were changed later, since it kept the same string reference.
Added `WSF_REQUEST.is_post_request_method: BOOLEAN' and `WSF_REQUEST.is_get_request_method: BOOLEAN' to ease app code
2012-09-10 09:35:47 +02:00
Jocelyn Fiat
153a853df5
Added `WSF_TABLE.is_empty: BOOLEAN'
...
Added `WSF_TABLE.as_array_of_string: detachable ARRAY [READABLE_STRING_32]'
2012-09-10 09:31:27 +02:00
Jocelyn Fiat
45daa731cf
Added put_expires_string (s: STRING) and put_expires_date (dt: DATE_TIME)
...
Better implementation for WSF_FILE_RESPONSE (added last modified, and other caching related info)
2012-09-10 09:27:32 +02:00
Jocelyn Fiat
f117cc0b97
Merge pull request #13 from GroupeS/filter
...
Filter: pre-process incoming data and post-process outgoing data
2012-09-05 08:02:41 -07:00
Olivier Ligot
b33d471cf8
[FIX] Path to libraries
2012-09-05 14:18:43 +02:00
Olivier Ligot
7ba863f43c
Merge remote-tracking branch 'upstream/master' into filter
2012-09-05 14:08:41 +02:00
Jocelyn Fiat
bd15133e2b
Also convert from STRING_8 to URI_TEMPLATE (not only from READABLE_STRING_8)
2012-08-31 07:03:15 +02:00
Jocelyn Fiat
0c110169de
fixed location of ewf.ini for ISE wizard
2012-08-28 17:06:14 +02:00
Jocelyn Fiat
61b7f89e3b
Fixed source code for building and installing the ISE Wizard
2012-08-28 16:45:25 +02:00
Jocelyn Fiat
2f94214863
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-08-24 12:05:49 +02:00
Jocelyn Fiat
40e524337e
Merge branch 'master' of https://github.com/eiffelhub/json
...
Conflicts:
draft/library/gobo/shared_gobo_ejson.e
draft/library/kernel/converters/json_converter.e
draft/library/kernel/converters/json_hash_table_converter.e
draft/library/kernel/converters/json_linked_list_converter.e
draft/library/kernel/ejson.e
draft/library/kernel/shared_ejson.e
draft/test/autotest/test_suite/json_author_converter.e
draft/test/autotest/test_suite/json_book_collection_converter.e
draft/test/autotest/test_suite/json_book_converter.e
draft/test/autotest/test_suite/test_json_core.e
2012-08-24 02:40:54 -07:00
Jocelyn Fiat
5487b04922
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki
...
Conflicts:
doc/wiki/Home.md
2012-08-24 02:22:49 -07:00
Jocelyn Fiat
425f3fbb86
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki
...
Conflicts:
doc/wiki/Home.md
2012-08-24 07:54:03 +02:00
jocelyn
a29bbab0a8
Updated Projects (markdown)
2012-08-14 01:16:50 -07:00
jocelyn
55fc25b258
Updated Projects (markdown)
2012-08-13 03:41:07 -07:00
jocelyn
681e331dec
Updated Projects Suggestions (markdown)
2012-08-13 03:40:44 -07:00
jocelyn
693b5b2d1b
Updated Projects Suggestions (markdown)
2012-08-13 03:40:22 -07:00
jocelyn
97018e93f6
Updated Projects (markdown)
2012-08-13 03:39:54 -07:00
jocelyn
c92be6de09
Updated Projects (markdown)
2012-08-13 03:35:26 -07:00
jocelyn
26706841a5
Updated Projects Suggestions (markdown)
2012-08-13 03:34:55 -07:00
jocelyn
a7577bb330
Updated Projects Suggestions (markdown)
2012-08-13 03:33:58 -07:00
jocelyn
dc3a897150
Updated Projects Suggestions (markdown)
2012-08-13 03:33:18 -07:00
jocelyn
764b076b88
Updated Project suggestions (markdown)
2012-08-13 03:32:52 -07:00
jocelyn
e861d65e99
Created Project suggestions (markdown)
2012-08-13 03:32:28 -07:00
jocelyn
2f556cb99e
Updated Projects (markdown)
2012-08-13 03:26:44 -07:00
jocelyn
38f856a54b
Updated Projects (markdown)
2012-08-13 03:17:28 -07:00
Olivier Ligot
74334e665d
[ADD] Filter: pre-process incoming data and post-process outgoing data
...
Filters are part of a filter chain, thus following the chain of responsability
design pattern.
More information are available in library/server/wsf/src/filter/README.md
2012-08-10 10:09:59 +02:00
Jocelyn Fiat
b6464cf5e7
removed "getest" since it is duplication with autotest (and we use mainly the later for regression testing)
2012-08-08 09:13:33 +02:00
Jocelyn Fiat
8b33c77008
Added JSON_PRETTY_STRING_VISITOR
...
Added converter for ARRAYED_LIST
Fixed STRING_32 to JSON_VALUE issue in ejson.e
Added missing new line character at the end of some files.
Cosmetic
2012-08-08 08:51:00 +02:00
Olivier Ligot
aedf8ec1cd
[FIX] Convertion from DS_HASH_TABLE keys to JSON
...
This is useful when the type of the key is something else than a STRING
and we have a JSON converter for this type.
2012-08-02 14:06:48 +02:00
jocelyn
3fc4936428
Updated Projects (markdown)
2012-07-31 00:46:23 -07:00
jocelyn
8a91796d12
Updated Projects (markdown)
2012-07-30 05:21:14 -07:00
jocelyn
8812b660da
Updated Projects (markdown)
2012-07-30 05:12:24 -07:00
jocelyn
0647d40865
Updated Projects (markdown)
2012-07-30 05:11:18 -07:00
jocelyn
65f9b6598b
Updated Projects (markdown)
2012-07-30 01:54:32 -07:00
jocelyn
600e403d91
Updated Projects (markdown)
2012-07-30 01:49:24 -07:00
jocelyn
65c9da1288
Updated Projects (markdown)
2012-07-27 09:23:12 -07:00
jocelyn
78975fbf1c
Created Projects (markdown)
2012-07-27 07:54:06 -07:00
jocelyn
6a650c4a34
Updated Home (markdown)
2012-07-27 07:41:43 -07:00
jocelyn
73319dcd80
Updated Home (markdown)
2012-07-27 06:55:34 -07:00
Jocelyn Fiat
c62a4d2c49
Update master
2012-07-05 13:46:07 +03:00
Jocelyn Fiat
fce267984c
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-06-29 11:42:36 +02:00
Jocelyn Fiat
0665085eee
updated to use WSF_STRING.value instead of obsolete WSF_STRING.string
2012-06-29 10:48:21 +02:00
Jocelyn Fiat
0a058882f5
Merge branch 'master' of https://github.com/eiffelhub/json
2012-06-29 10:36:53 +02:00
Jocelyn Fiat
480abdec51
Better code for tutorial example.
2012-06-29 10:27:23 +02:00
Jocelyn Fiat
b7be1cb0a2
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki
2012-06-29 07:44:03 +02:00
jocelyn
9adbee9887
Updated EWSGI specification: difference in main proposals (markdown)
2012-06-28 22:39:41 -07:00
Jocelyn Fiat
6fa0d56465
cosmetic
2012-06-28 18:07:18 +02:00
Jocelyn Fiat
14367f9bde
Merge branch 'master' of https://github.com/eiffelhub/json
...
Conflicts:
draft/library/kernel/json_object.e
2012-06-28 17:55:48 +02:00
Jocelyn Fiat
e272fea9ea
Merge branch 'master' of https://github.com/eiffelhub/json
...
Conflicts:
draft/library/kernel/json_object.e
2012-06-28 17:28:31 +02:00
Jocelyn Fiat
1e86f53999
Added subtree merged in contrib\library\text\parser\json
2012-06-28 17:26:56 +02:00
Jocelyn Fiat
873f877530
Added TABLE_ITERABLE interface to JSON_OBJECT
...
Added JSON_OBJECT.replace (value, key)
2012-06-28 16:52:11 +02:00
Jocelyn Fiat
0dae7c6432
use svn export instead of svn checkout
2012-06-27 09:27:55 +02:00
Jocelyn Fiat
d539ea061a
If library/cURL exists, do not copy cURL to contrib/library/network/cURL
2012-06-26 22:49:14 +02:00
Jocelyn Fiat
39aea2808e
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki
2012-06-22 15:57:35 +02:00
Jocelyn Fiat
9b13aa27dd
Added simple console wizard for Eiffel Studio.
...
(It is not very user friendly, this is a first draft)
It should be improved in the future (with GUI, ...)
2012-06-22 15:54:50 +02:00
jocelyn
675f58f42b
Updated Community collaboration (markdown)
2012-06-20 12:56:55 -07:00
jocelyn
3d686fb50c
Updated Task json (markdown)
2012-06-20 12:54:37 -07:00
jocelyn
ca6b4c468f
Updated Tasks Roadmap (markdown)
2012-06-20 12:53:52 -07:00
Jocelyn Fiat
87c2074d2b
Updated doc/wiki from branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki
...
Conflicts:
doc/wiki/Home.md
2012-06-20 14:43:39 +02:00
Jocelyn Fiat
756f4f6958
When installing, remove the folder "fonts" from the nino's example
2012-06-20 12:14:22 +02:00
Jocelyn Fiat
4d7e427d7a
removed git submodule for contrib/ise_library/cURL (replaced by git subtree merged)
2012-06-20 09:56:45 +02:00
Jocelyn Fiat
5059f4eb1c
fixed path in uninstall_ewf.bat
2012-06-20 09:56:06 +02:00
Jocelyn Fiat
2ac7633b80
Replaced git submodule by subtree merged in contrib/ise_library/cURL
2012-06-20 09:55:34 +02:00
Jocelyn Fiat
e8fa284c79
Replaced git submodule by subtree merged in contrib/library/text/parser/json
2012-06-20 09:52:07 +02:00
Jocelyn Fiat
51b602b42a
Fixed typo in linux command line (should use -option instead of --option )
2012-06-19 23:46:58 +02:00
Jocelyn Fiat
50146cebf5
Put examples under examples/web/ewf/...
2012-06-19 15:24:16 +02:00
Jocelyn Fiat
1d425d2947
Fixed typo
2012-06-19 14:56:24 +02:00
Jocelyn Fiat
74061f83b3
fixed typo in dos batch script
2012-06-19 14:32:52 +02:00
Jocelyn Fiat
692ff182ca
IfECF_PATH_UPDATER is defined, let's use it to find ecf_updater executable
2012-06-19 02:36:54 -07:00
Jocelyn Fiat
89110e3568
put everything under contrib for now, eventually svn checkout missing parts
2012-06-18 09:24:07 -07:00
Jocelyn Fiat
8e9db583cc
fixed not enought argument for internal shell function (typo..)
2012-06-18 07:22:15 -07:00
Jocelyn Fiat
1509d68ca6
Final version of the install scripts.
2012-06-18 16:11:01 +02:00
Jocelyn Fiat
3709dec5e9
Fixed typo and path separators usage in dos batch scripts
2012-06-18 14:57:52 +02:00
Jocelyn Fiat
ba7886f73d
Install script does the same on Windows and Linux
2012-06-18 14:51:26 +02:00
Jocelyn Fiat
0217083d79
improved install_ewf.sh , and removed usage of deleted router.ecf
2012-06-18 02:24:47 -07:00
Jocelyn Fiat
1260ebf999
Updated install_ewf.sh
2012-06-15 14:02:49 -07:00
colin-adams
f6d64b42c6
Complete.
2012-06-15 08:38:30 -07:00
colin-adams
c9b11a6401
Updated Library conneg (markdown)
2012-06-15 08:09:39 -07:00
colin-adams
53a206694a
Updated Library conneg (markdown)
2012-06-15 08:04:30 -07:00
colin-adams
74079325a0
Updated Library conneg (markdown)
2012-06-15 07:57:48 -07:00
colin-adams
d0e9438d46
Updated Library conneg (markdown)
2012-06-15 07:44:14 -07:00
Jocelyn Fiat
f3e1c524db
Cleaned up compile_all.ini
2012-06-15 16:43:54 +02:00
Jocelyn Fiat
efeb372631
Updated draft library (consider it as draft quality)
2012-06-15 16:32:39 +02:00
Jocelyn Fiat
3389973a75
More flexible signature to allow detachable READABLE_STRING_8
...
Signed-off-by: Colin Adams <colinpauladams@gmail.com >
2012-06-15 16:28:01 +02:00
colin-adams
bd5985a99a
Created Library conneg (markdown)
2012-06-15 07:10:36 -07:00
Jocelyn Fiat
5f3749e463
updated eel and eapml from more recent versions.
2012-06-15 14:57:12 +02:00
Jocelyn Fiat
0203e0fdc7
Moved eel and eapml under the contrib folder.
2012-06-15 14:24:23 +02:00
Jocelyn Fiat
12d56861e6
Fixing wrong path for ewsgi connector nino
...
(this was introduced recently when we moved folder location)
2012-06-15 14:15:44 +02:00
Jocelyn Fiat
23de980e57
added methods_head_get_post and methods_head_get
2012-06-15 10:54:53 +02:00
Jocelyn Fiat
ad5fed84ca
Fixed previous commit where nino .ecf path was empty.
2012-06-15 10:53:32 +02:00
colin-adams
e2adc3cfbb
Updated Tasks Roadmap (markdown)
2012-06-14 22:13:52 -07:00
colin-adams
51e54311b1
Updated Task json (markdown)
2012-06-14 22:13:02 -07:00
jocelyn
8a43e4ebb1
Updated Home (markdown)
2012-06-14 05:50:27 -07:00
Jocelyn Fiat
aa38cf787a
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-06-14 14:17:02 +02:00
Jocelyn Fiat
3702842337
Updated structure of EWF, applied
...
Now "nino" is under contrib/library/network/server/nino (as git merge subtree, and not anymore as submodule)
2012-06-14 13:35:08 +02:00
Jocelyn Fiat
2b730186a2
Fixing issue with HEAD and make_from_iterable
2012-06-14 12:28:52 +02:00
Jocelyn Fiat
dbd5e481b8
Merge remote-tracking branch 'ewf_wiki/master'
2012-06-13 23:10:04 +02:00
jocelyn
167c9403c0
Updated Home (markdown)
2012-06-13 14:08:17 -07:00
Jocelyn Fiat
b61cd7f512
Update master
2012-06-14 00:06:44 +03:00
Jocelyn Fiat
0a31cb38a3
Added "nino" subtree merged in contrib/library/network/server/nino
2012-06-13 22:45:50 +02:00
Jocelyn Fiat
db448001a1
Change structure of EWF, to follow better categorization
2012-06-13 22:32:17 +02:00
Jocelyn Fiat
3df1a26220
Better script, do not use default folder without asking.
2012-06-13 19:21:08 +02:00
Jocelyn Fiat
369a63c797
Added temporary scripts to install EWF on Windows
2012-06-13 18:51:19 +02:00
Jocelyn Fiat
52adff29aa
updated script with official git repo
2012-06-11 15:20:41 +02:00
Jocelyn Fiat
8a58d62a7e
Adopted convention name and value or values for WSF_VALUE and descendant (WSF_STRING ...)
...
kept `key' as redirection, and also string as obsolete redirection.
Router: provide a way to pass the request methods without using manifest string, thanks to WSF_ROUTER_METHODS
so instead of using manifest array or manifest strings, just create an instance of WSF_ROUTER_METHODS
for convenience, WSF_ROUTER provides a few `methods_...' returning prebuilt WSF_ROUTER_METHODS objects
Improved code related to unicode handling in URL, and parameters (before the framework was doing too much)
2012-06-11 14:58:13 +02:00
Jocelyn Fiat
36ed6f525c
Update examples/tutorial/step_4.wiki
2012-05-30 11:10:56 +03:00
Jocelyn Fiat
815b62153a
Update examples/tutorial/step_4.wiki
2012-05-30 11:10:25 +03:00
Jocelyn Fiat
a9cf373443
Update examples/tutorial/step_1.wiki
2012-05-30 10:57:36 +03:00
Jocelyn Fiat
97b549cf83
Added precompile for step_3
2012-05-30 09:53:00 +02:00
Jocelyn Fiat
7a619fa7a5
Sync with json
2012-05-30 09:52:41 +02:00
Jocelyn Fiat
0d5011b03e
Added html encoding facility to WSF_STRING
...
Added WSF_STRING.is_empty
Improved HTML_ENCODER to be able to decode a STRING_8 or STRING_32 using general_decoded_string (s)
Improved tutorial example
Added precompilation for WSF library
Cosmetic (removed unused locals)
2012-05-30 09:36:55 +02:00
Jocelyn Fiat
8dd0cb29fa
Applied recent changes made on EWF
...
Updated copyright
2012-05-28 11:21:28 +02:00
Jocelyn Fiat
445a27ddf8
Now inherit create_router ; but it is still possible to redefine it.
...
Added some wsf_reponse_message for redirection
Use "found" for the redirec_now ...
Added content to the tutorial
2012-05-28 10:54:05 +02:00
Jocelyn Fiat
171be24d2a
Better us OK status for redirection by default
2012-05-25 23:56:10 +02:00
Jocelyn Fiat
fb7d5054da
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
2012-05-25 23:55:35 +02:00
Jocelyn Fiat
03bf467ee5
Added descriptions to WSF_RESPONSE about .send (mesg)
...
Fixed minor issues in other classes
2012-05-25 23:51:59 +02:00
Jocelyn Fiat
fd73af2cf8
Update examples/tutorial/step_3.wiki
2012-05-26 00:21:31 +03:00
Jocelyn Fiat
5504175d00
added eiffel code
2012-05-26 00:19:14 +03:00
Jocelyn Fiat
8283979a1e
cosmetic
2012-05-26 00:17:27 +03:00
Jocelyn Fiat
3982c46ac4
Update examples/tutorial/step_3.wiki
2012-05-26 00:14:32 +03:00
Jocelyn Fiat
37a68dc778
Update examples/tutorial/step_3.wiki
2012-05-26 00:13:46 +03:00
Jocelyn Fiat
dafd8335d2
Update examples/tutorial/step_1.wiki
2012-05-26 00:10:20 +03:00
Jocelyn Fiat
4324b83cba
fixed github wikitext usage
2012-05-26 00:08:28 +03:00
Jocelyn Fiat
b37a2bd17f
Update examples/tutorial/step_4.wiki
2012-05-26 00:07:09 +03:00
Jocelyn Fiat
2a781b9081
Update examples/tutorial/step_3.wiki
2012-05-26 00:06:05 +03:00
Jocelyn Fiat
4bd8a24478
Update examples/tutorial/step_2.wiki
2012-05-26 00:05:06 +03:00
Jocelyn Fiat
f1e7639e6c
Update examples/tutorial/step_1.wiki
2012-05-26 00:04:01 +03:00
Jocelyn Fiat
08347da643
Added more content to the tutorial
2012-05-25 22:55:15 +02:00
Jocelyn Fiat
6cff00428b
Protected export of WSF_RESPONSE_MESSAGE.send_to
...
Added WSF_DEFAULT_RESPONSE_SERVICE
Added simple WSF_SERVICE_LAUNCHER_OPTIONS_FROM_INI class to load launch option from ini file.
Removed a few obsolete features
2012-05-25 20:17:55 +02:00
Jocelyn Fiat
aa6a1f2b8a
Update examples/tutorial/README.wiki
2012-05-25 19:07:58 +03:00
Jocelyn Fiat
0f42eb2af0
Update examples/tutorial/README.wiki
2012-05-25 19:06:55 +03:00
Jocelyn Fiat
6d428cf078
added skeleton for tutorial_i text
2012-05-25 18:05:01 +02:00
Jocelyn Fiat
bd5238cf10
removed README.md
2012-05-25 17:57:13 +02:00
Jocelyn Fiat
e006b476af
Removed to README.wiki
2012-05-25 17:56:19 +02:00
Jocelyn Fiat
f07fbbe450
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-05-25 17:49:54 +02:00
Jocelyn Fiat
00a88e98e5
Updated indexing notes
...
started tutorial
Sync
2012-05-25 17:47:43 +02:00
Jocelyn Fiat
f1498e2a07
http_client PUT uploaded data is not correctly implemented using libcurl
...
so for now, let's use a real temporary file to use the upload filename implementation
2012-05-23 23:17:50 +02:00
Jocelyn Fiat
5899da6197
fixed typo in curl.ecf
2012-05-21 17:25:53 +02:00
Berend de Boer
2ff3cff70f
Do not use 307 but 302 response
2012-05-21 17:18:12 +02:00
Jocelyn Fiat
8fddfd6d22
Added presentation of EWF from march 2012
2012-05-15 19:05:16 +02:00
jocelyn
81da23c472
Updated Home (markdown)
2012-05-15 10:01:41 -07:00
Jocelyn Fiat
a3ae808a59
misc: script to checkout the source code with svn
2012-05-15 18:53:58 +02:00
Jocelyn Fiat
1d82a55e76
added some git tips in doc
2012-05-15 18:38:16 +02:00
Jocelyn Fiat
cf68ce6681
Added subtree merged in doc/wiki
2012-05-15 18:26:08 +02:00
Jocelyn Fiat
1d89a2bd9f
Removed submodule doc/wiki
2012-05-15 18:25:09 +02:00
Jocelyn Fiat
ddd9eb646d
removed commented lines
2012-05-14 22:07:48 +02:00
Jocelyn Fiat
ff97b041a9
updated ChangeLog
2012-05-14 21:41:43 +02:00
Jocelyn Fiat
c3c27c5027
Rather use (READABLE_)STRING_GENERAL for argument instead of _8 or _32 variant
...
Better design to set the WSF_REQUEST.path_parameters
especially handle the case where the request goes trought more than one route (could be the case when using WSF_ROUTING_HANDLER)
2012-05-14 18:12:28 +02:00
Jocelyn Fiat
64eebd32db
Updated URI Template to follow official RFC6570
2012-05-14 18:11:12 +02:00
Jocelyn Fiat
278a71eaaf
Reviewed WSF_REQUEST.item (..) and items to look into Form, Query, and Path (cookie are excluded for security)
...
Added WSF_REQUEST.path_parameter (a_name): detachable WSF_VALUE
- fill path_parameters using `import_raw_path_parameters"
when executing the route
- reset to previous value with reset_path_parameters (..),
just in case the request is executed via severals routes.
2012-05-07 23:16:52 +02:00
Jocelyn Fiat
e615026520
Reverted back to export upload_data and upload_filename to ANY (and related features)
2012-05-04 13:45:17 +02:00
Jocelyn Fiat
3a979915f5
Removed HTTP_CLIENT_SESSION.post_multipart .. because it was not doing what the name might evoque
...
Restrict export of HTTP_CLIENT_REQUEST_CONTEXT.upload_data and upload_filename (and related) to .._SESSION and .._REQUEST
this is mainly internal data, and is more about implementation than interface
2012-05-04 12:37:51 +02:00
Jocelyn Fiat
4508a76683
Now the http_client will send the form parameters urlencoded if this is possible (instead of multipart form data)
...
Note for now, the library does not support sending file and form parameters at the same time.
2012-05-04 12:23:37 +02:00
Jocelyn Fiat
d40cc5d669
Fixed typo in .ecf .. curl instead of cURL
2012-05-03 18:46:04 +02:00
Jocelyn Fiat
3b27e093eb
Added geant scripts to compile EWF
2012-05-03 18:29:46 +02:00
Jocelyn Fiat
eb04ac5405
Improved the libcurl implementation of http_client by adding HTTP_CLIENT_SESSION.is_debug: BOOLEAN
...
if True, this display verbose debug information in console
Implemented uploading of file for PUT and POST requests
Refactored LIBCURL_HTTP_CLIENT_REQUEST to free used pointer, and also ease extension of the class if needed.
Updated cURL library with addition of {CURL_EXTERNALS}.slist_free_all (..)
2012-05-03 16:21:42 +02:00
jfiat
c4e25a3091
Added {CURL_EXTERNALS}.slist_free_all
...
review#7828040
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@88674 8089f293-4706-0410-a29e-feb5c42a2edf
2012-05-02 19:58:42 +00:00
Jocelyn Fiat
31cf64f4ad
do not use implicit conversion from HTTP_CONTENT_TYPE
2012-05-02 19:25:14 +02:00
Jocelyn Fiat
face4550f2
Fixed wrong signature should be READABLE_STRING_32 instead of _8
2012-05-02 19:22:39 +02:00
Jocelyn Fiat
ee0e3df05f
Also removing the implicit conversion from STRING to HTTP_*_TYPE
2012-05-02 11:40:23 +02:00
Jocelyn Fiat
18ced46c99
Removed implicit conversion from HTTP_CONTENT_TYPE to STRING_8
...
because it could be a source of bug due to hidden conversion (and parameters)
Applied changes to autotest cases
Cosmetic
2012-05-02 11:35:53 +02:00
Jocelyn Fiat
7c95e514ad
Added comments
...
Added `url' to compute the url from base_url, path and query parameters
2012-04-30 15:54:21 +02:00
Jocelyn Fiat
e304113984
Fixed error in URL encoding, according to the RFC3986, space should not be encoded with '+' but with percent encoding.
2012-04-30 15:53:44 +02:00
Jocelyn Fiat
07b3eddefe
Fixed signature issue, the argument `name' should be READABLE_STRING_32
2012-04-30 15:51:10 +02:00
Jocelyn Fiat
dc2e535fe8
Code cleaning
2012-04-30 15:49:35 +02:00
Jocelyn Fiat
bd33aabd93
Added specific helper function related to `charset' parameter
2012-04-30 15:49:24 +02:00
Jocelyn Fiat
80a1c85844
added postcondition status_reason_phrase_unset to `set_status'
2012-04-27 08:52:58 +02:00
Jocelyn Fiat
9ba3caba12
cosmetic
2012-04-27 08:52:29 +02:00
Jocelyn Fiat
34c6288032
Fixed a last minute regression due to removal REQUEST.chunked_input
2012-04-13 17:19:14 +02:00
Jocelyn Fiat
21b03a05fd
Added WSF_ROUTER.pre_route_execution_actions: ACTION_SEQUENCE [like route]
...
This way, one can add logger hook to router, to see which "route" was taken by the request.
2012-04-13 16:40:19 +02:00
Jocelyn Fiat
0bd2d16c12
Made WGI_CHUNKED_INPUT_STREAM inherits from WGI_INPUT_STREAM
...
Merged REQUEST.input and REQUEST.chunked_input
Now REQUEST.input handles directly the chunked transfer encoding, or the non chunked.
Kept REQUEST.is_chunked_input since it matters that Content-Length is 0 even if there are input (chunked) data.
2012-04-13 16:33:49 +02:00
Jocelyn Fiat
e6a727ee42
Fixed compilation of samples
2012-04-12 12:51:52 +02:00
Jocelyn Fiat
1403cc5c09
Fixed compilation
2012-04-12 12:25:34 +02:00
Jocelyn Fiat
3bbf356f19
Missing commit related to changes on WSF_ROUTER
2012-04-12 11:59:14 +02:00
Jocelyn Fiat
b541efcc8f
Now WGI_RESPONSE.set_status_code (..) has a new argument to pass optional custom reason phrase.
...
This is a minor breaking change (but prior to the first release, so acceptable)
And then it is now possible to precise a custom reason phrase (useful for 4xx and 5xx response)
At the WSF_RESPONSE level, the status code is now sent only when the header are sent.
thus, it is possible to change the status code as long as no header is sent.
(in the future, we should also try to delay the sending of headers)
Removed WGI_RESPONSE.put_header_lines (..) which was not used, and WGI is not meant to provide such user friendly features
Now this is available directly on WSF_RESPONSE
2012-04-12 11:19:41 +02:00
Jocelyn Fiat
082def2b70
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-04-06 15:52:03 +02:00
Jocelyn Fiat
79607600e6
updated to EiffelWebFramework/EWF
2012-04-06 16:27:22 +03:00
jocelyn
8870e19991
Updated Home (markdown)
2012-04-06 06:25:05 -07:00
Jocelyn Fiat
0b6b7f793c
sync with json lib.
2012-04-06 11:31:57 +02:00
Jocelyn Fiat
badc2458c4
Sync with wiki
2012-04-06 11:29:07 +02:00
Jocelyn Fiat
d4208c59f3
Use https://github.com/EiffelWebFramework/EWF.git as master
2012-04-06 11:21:50 +02:00
Jocelyn Fiat
4bafa5b3c0
Added `transfered_content_length' to WSF_RESPONSE to provide the information to application
...
This can be used to build logs for instance.
2012-04-05 21:15:12 +02:00
Jocelyn Fiat
c89b19371e
Relaxed WSF_REDIRECTION_RESPONSE.set_content (.., ..) to allow Void for content type
...
in order to use the one set in header or the default one.
2012-04-05 21:14:10 +02:00
Jocelyn Fiat
10ebc12852
Removed default handler for WSF_ROUTER
...
Added WSF_ROUTE to replace a TUPLE [H, C]
WSF_ROUTER.route (req): detachable WSF_ROUTE
WSF_ROUTER.execute_route (a_route, req, res)
To help usage of Routers
Remove WSF_HANDLER_CONTEXT obsolete features.
Added comments
2012-04-05 21:13:04 +02:00
Jocelyn Fiat
593e48ec5b
Merge remote-tracking branch 'remotes/eiffelworld/master'
2012-04-02 09:29:53 +02:00
Jocelyn Fiat
11b15ec5b7
Merge pull request #10 from oligot/unneeded_precondition
...
Unneeded precondition
2012-04-02 00:28:23 -07:00
Olivier Ligot
ff713a42ab
[REM] Remove unneeded precondition
2012-04-02 09:28:22 +02:00
Olivier Ligot
155c45be6c
[IMP] Ignore *.swp files
2012-04-02 09:28:10 +02:00
Jocelyn Fiat
09fa1adaab
removed obsolete message.
2012-04-02 09:27:59 +02:00
Olivier Ligot
425c276051
[REM] Remove unneeded precondition
2012-03-27 11:30:42 +02:00
Olivier Ligot
0040e4b0d0
[IMP] Ignore *.swp files
2012-03-27 11:29:33 +02:00
Olivier Ligot
b862065c04
Merge branch 'master', remote branch 'upstream/master'
2012-03-26 17:19:02 +02:00
Jocelyn Fiat
874677ab7a
Renamed same_media_type as same_simple_type
...
Added comments
2012-03-23 19:00:49 +01:00
Jocelyn Fiat
ed200b93dd
updated tests.ecf
2012-03-23 18:40:29 +01:00
Jocelyn Fiat
bcccfb22ed
Added HTTP_MEDIA_TYPE (maybe it will just replace the HTTP_CONTENT_TYPE later)
...
renamed .media_type as .simple_type for now
allow more than one parameters
2012-03-23 18:39:19 +01:00
Jocelyn Fiat
5c98d7ba4e
Use media_type as replacement for type_and_subtype_string in HTTP_CONTENT_TYPE
2012-03-23 16:49:13 +01:00
Jocelyn Fiat
40c6aff423
Added class HTTP_CONTENT_TYPE to help manipulation of Content-Type value
...
Now WSF_REQUEST return a HTTP_CONTENT_TYPE if available
Adapted WSF_MIME_HANDLER to use this new class
Added one manual autotest to test MIME handler
2012-03-23 16:40:13 +01:00
Jocelyn Fiat
ac9cbb0bd2
in WSF_RESPONSE, put_header' now call put_header_text'
...
Removed unused local variable
2012-03-21 14:49:09 +01:00
Jocelyn Fiat
95c3bbf6e5
Fixed very bad mistake where no Result was ever set for WSF_REQUEST.item (..)
2012-03-21 14:43:32 +01:00
Jocelyn Fiat
b955912dc2
fixed compilation issue (typo)
2012-03-20 16:17:43 +01:00
Jocelyn Fiat
50223b12f7
Do not try to compile_all in "dev" folder
2012-03-20 16:15:16 +01:00
Jocelyn Fiat
6c7ba93062
Reverted a previous change, we should not truncated Content-Type after ;
...
In the case of multipart/form-data the parameter "boundary=" is essential
2012-03-20 14:35:04 +01:00
Jocelyn Fiat
743f26c376
Use WSF_DEFAULT_SERVICE for the test echo server
2012-03-20 12:18:44 +01:00
Jocelyn Fiat
d256ec3944
Fixing compilation of specific example using the WGI connector directly
2012-03-20 12:15:45 +01:00
Jocelyn Fiat
482f8e41e7
Added WSF_SERVICE.to_wgi_service to ease direct integration with existing WGI components
2012-03-20 11:40:13 +01:00
Jocelyn Fiat
9eef812795
Relaxed access to `send_to', now it is exported again to avoid breaking existing code.
2012-03-20 11:38:44 +01:00
Jocelyn Fiat
86fcaa2835
remove unused local variable
2012-03-20 11:15:14 +01:00
Jocelyn Fiat
897aeb3132
WSF_REQUEST.content_type should keep only the relevant part of the content type
...
and forget about the eventual parameters (charset, name) ...
note: it is possible to query meta_string_variable ("CONTENT_TYPE")
to get the complete Content-Type header
2012-03-20 11:12:18 +01:00
Jocelyn Fiat
48acdea73c
Added HTTP_HEADER.(put|add)_content_type_with_parameters (...)
2012-03-20 11:08:52 +01:00
Jocelyn Fiat
cbaae12156
removed obsolete
2012-03-20 10:30:04 +01:00
Jocelyn Fiat
8344607eb6
Implemented WSF_RESPONSE.put_error (...) and related
...
Added WSF_RESPONSE.put_character
Renamed WGI_OUTPUT_STREAM.put_character_8 as put_character to follow style of put_string (and not put_string_8)
Refactored the WSF_DEFAULT_SERVICE_LAUNCHER
Added WSF_DEFAULT_SERVICE to be more user friendly
Splitted the wsf/default/ libraries to have wsf/connector/... and being able to handle more than one connector in the same application
2012-03-20 10:29:55 +01:00
Jocelyn Fiat
71d5dc4795
Moved mime handler classes under wsf/src/mime/
2012-03-20 08:38:38 +01:00
Jocelyn Fiat
3f0b745ecc
removed unwanted rescue clause
2012-03-19 15:20:29 +01:00
Jocelyn Fiat
3432e2d8b2
Updating EWSGI specification classes
2012-03-19 15:06:50 +01:00
Jocelyn Fiat
fea0f115a0
Removed WGI_RESPONSE.write (..)
...
Replaced any internal call to WGI_RESPONSE.write () by the associated implementation (i.e output.put_string (...) )
Added WGI_OUTPUT_STREAM.put_crlf
Renamed WSF_RESPONSE.put_response (a_message) as `send (a_message)'
WSF_RESPONSE_MESSAGE.send_to (res) is now exported only to WSF_RESPONSE
2012-03-19 14:52:12 +01:00
Berend de Boer
84a12447db
Avoid another indirection.
2012-03-19 14:02:13 +01:00
Berend de Boer
876f9e02b7
status must be set, else WGI_SERVICE.execute will report the
...
postcondition violation.
Conflicts:
library/server/wsf/router/wsf_handler.e
2012-03-19 13:58:17 +01:00
Berend de Boer
e5323dd208
Minor code cleanup/typo fix.
2012-03-19 13:54:48 +01:00
Berend de Boer
77834a3dd8
Move wgi_service spec to its own directory else I get a class
...
conflicts with compile_ise.ecf generated by gexace.
2012-03-19 13:54:34 +01:00
Jocelyn Fiat
4906345a62
Improved comment in WSF_RESPONSE.put_response (..)
...
Added WSF_REDIRECTION_RESPONSE class
2012-03-19 12:32:12 +01:00
Jocelyn Fiat
487487ad44
Added WSF_RESPONSE_HANDLER based on WSF_RESPONSE_MESSAGE
...
The descendant has to implement the function
response (ctx: C; req: WSF_REQUEST): WSF_RESPONSE_MESSAGE
Added related features and class in WSF_ROUTER to be able to use agent easily.
2012-03-19 12:04:46 +01:00
Jocelyn Fiat
ef5ba19c46
Refactored WSF_HANDLER_CONTEXT
...
- removed path_parameter
- added `item' to include WSF_REQUEST.item
- marked obsolete `parameter'
The goal is to remove confusion, remove URI_TEMPLATE specific `path_parameter'
and provide a way to use ctx.item (..) to also include meta variable, query, form, ... items
2012-03-19 10:21:29 +01:00
Jocelyn Fiat
b05ff01262
Use local variable to speed up access to `input'
2012-03-19 10:12:06 +01:00
Jocelyn Fiat
9f1940c46d
Applied wsf_extension creation, and classes moved from wsf to wsf_extension
2012-03-16 15:17:22 +01:00
Jocelyn Fiat
f69ff42564
Created wsf_extension, and moved some classes from wsf to wsf_extension
...
WSF_HANDLER_HELPER
WSF_RESOURCE_HANDLER_HELPER
WSF_HANDLER_ROUTES_RECORDER
2012-03-16 14:12:02 +01:00
Jocelyn Fiat
eb3e9f2186
applied removal of HTTP_HEADER.put_status (..)
2012-03-16 13:53:22 +01:00
Jocelyn Fiat
03b10bdc14
Removed HTTP_HEADER.put_status (...)
...
It is not recommended to send the status code as part of the HTTP Header,
so let's remove this ambiguity and do not encourage EWF user to use it
2012-03-16 13:35:52 +01:00
Jocelyn Fiat
46eb92ac37
Major renaming, adopt the WSF_ prefix for all classes under "wsf", and simplify some class names
...
Removed in WGI_INPUT_STREAM, the assertion "same_last_string_reference"
Copyright updates
2012-03-16 09:49:41 +01:00
Jocelyn Fiat
25218996e0
Fixed compilation of draft/library/server/request/rest/tests/..
...
Note the "rest" library will not be maintained since this is not REST.
2012-03-13 18:41:32 +01:00
jfiat
081392529c
Better use C_STRING.substring (1, size) instead of C_STRING.string since we know the exact size
...
and this way, no risk with \0 character inside the string itself (for binary data..)
Added comments
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@88401 8089f293-4706-0410-a29e-feb5c42a2edf
2012-03-13 17:36:43 +00:00
Jocelyn Fiat
68dbbdea9f
precise that library/server/request/router is now part of "wsf" library and not anymore independant library.
2012-03-13 18:09:16 +01:00
Jocelyn Fiat
5abc79b7c3
Nino connector:
...
- fixed issue related to `ready_for_reading' now use the `try_...' variant
- for now Nino does not support persistent connection, then we have to respond with "Connection: close"
REQUEST_FILE_SYSTEM_HANDLER:
- added not_found_handler and access_denied_handler, so that the user can customize related response
WSF_REQUEST and WSF_VALUE:
- modified how uploaded file are handled, fixed various issues, and added WSF_UPLOADED_FILE (it is a WSF_VALUE)
WSF_VALUE:
- added change_name (a_name: like name)
- added url_encoded_name to other WSF_values
WSF_REQUEST:
- added `destroy' to perform end of request cleaning (such as deleting temp uploaded files)
- renamed `raw_post_data_recorded' as `raw_input_data_recorded', and related feature
- do not store the RAW_POST_DATA in meta variable anymore, but in WSF_REQUEST.raw_input_data is asked
Added WSF_HTML_PAGE_RESPONSE to help user
WSF_REPONSE.redirect_... now use "temp_redirect" as default
instead of "moved_permanently" which is specific usage
Removed many obsolete features.
2012-03-13 18:07:28 +01:00
Jocelyn Fiat
e85213689e
TCP_STREAM_SOCKET: added try_ready_for_reading' which is the same as ready_for_reading' but without any timeout
2012-03-13 17:38:33 +01:00
Jocelyn Fiat
c5fe539acb
use https:// url for git submodules
2012-02-29 17:23:34 +01:00
Jocelyn Fiat
ac3e969b3c
Added assertions to catch if route mapping does not already exists
2012-02-29 11:27:46 +01:00
Jocelyn Fiat
98f2efbd68
Merging changes from Javier
...
Updated restbucksCRUD example, and related class in wsf/router
2012-02-28 09:23:09 +01:00
Jocelyn Fiat
7314e92fe6
Synchronized with nino and json library
2012-02-28 09:20:08 +01:00
jvelilla
ab38345c25
Update readme.txt
2012-02-24 08:54:27 -02:00
jfiat
c873d62efa
added JSON_OBJECT.is_empty: BOOLEAN
2012-02-21 10:07:58 +00:00
jvelilla
468b2851be
Refactor REQUEST_RESOURCE_HANDLER_HELPER to figure out the
...
transfer encoding: Chunked.
Added a new method to retrieve_data independently if the
transfer is chunked or not.
Updated ORDER_HANLDER to use this new feature.
Sync with Jocelyn repo
2012-02-17 08:48:27 -03:00
jvelilla
f1fe5464c6
Merge branch 'master' of git://github.com/jocelyn/Eiffel-Web-Framework
2012-02-17 07:28:57 -03:00
Jocelyn Fiat
d621987020
Minor correction, to avoid returning 200 as status code, when the client can not connect
2012-02-16 10:32:24 +01:00
Jocelyn Fiat
e541fdcb0c
fixed compilation
2012-02-15 12:36:57 +01:00
Jocelyn Fiat
5950d768c9
sync with cURL library
2012-02-15 11:58:32 +01:00
Jocelyn Fiat
413fdaf6cd
Fixed error visitor due to recent signature changes
2012-02-15 11:33:39 +01:00
Jocelyn Fiat
9138ffedfb
renamed (add|remove)_synchronized_handler as (add|remove)_synchronization
2012-02-15 11:07:12 +01:00
Jocelyn Fiat
72cc05532c
Removed tests target from encoder(-safe).ecf
...
(now there is a tests-safe.ecf in folder tests)
2012-02-15 11:04:42 +01:00
Jocelyn Fiat
145b129b28
Fixed ERROR_HANDLER.destroy
...
Fixed and export ERROR_HANDLER.remove_synchronized_handler
Added comments
Added associated autotests
2012-02-15 11:03:30 +01:00
Jocelyn Fiat
fbec89f354
Better signature for encoders
...
Split library .ecf and the autotest .ecf
2012-02-14 18:03:42 +01:00
Jocelyn Fiat
f59d5cac32
added postcondition to ensure the body string set to the response, is the same reference
...
this is important, since sometime we just do
rep.set_body (s)
s.append_string ("..")
2012-02-14 18:02:14 +01:00
Jocelyn Fiat
4bb8a71c1b
Added DEBUG_OUTPUT to ERROR, since this is convenient during debugging
2012-02-14 18:01:17 +01:00
Jocelyn Fiat
dd6b74326e
Added notion of synchronization between error handler
...
this is convenient to integrate two components using their own ERROR_HANDLER (not sharing the same object)
2012-02-14 12:57:01 +01:00
Jocelyn Fiat
e52cd6b352
use WSF_PAGE_RESPONSE, instead of reimplementing it ourself
2012-02-14 10:20:15 +01:00
larryl
ad2a498fc0
Added cURL multi interface support (most APIs) issue#7305157
...
The multi interface offers several abilities that the easy interface doesn't. They are mainly:
1. Enable a "pull" interface. The application that uses libcurl decides where and when to ask libcurl to get/send data.
2. Enable multiple simultaneous transfers in the same thread without making it complicated for the application.
3. Enable the application to wait for action on its own file descriptors and curl's file descriptors simultaneous easily.
More info: http://curl.haxx.se/libcurl/c/libcurl-multi.html
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@88299 8089f293-4706-0410-a29e-feb5c42a2edf
2012-02-14 02:52:03 +00:00
Jocelyn Fiat
537bd8241f
added a JSON encoder test case
2012-02-13 14:38:13 +01:00
Jocelyn Fiat
040c1d1c10
Merge pull request #9 from oligot/fix-libfcgi-location
...
[FIX] libfcgi.so location
2012-02-13 03:21:29 -08:00
Olivier Ligot
f3c779cf6e
[FIX] libfcgi.so location
...
On Ubuntu 10.04 LTS, libfcgi.so is in /usr/lib instead of /usr/local/lib
2012-02-10 14:01:04 +01:00
Jocelyn Fiat
6cf35e90c6
added a case in test_json_encoder
2012-02-08 21:36:49 +01:00
unknown
497fe03d38
libcurl: Applied a workaround to avoid issue on Win32 (see LIBCURL_HTTP_CLIENT_REQUEST.apply_workaround)
...
Separated the http_client-safe.ecf and test-safe.ecf
Added HTTP_CLIENT_SESSION.set_max_redirects
Fixed broken test due to formatting trouble.
2012-02-08 21:32:25 +01:00
Jocelyn Fiat
ca3a520bb9
fixed http_client tests
2012-02-08 16:36:54 +01:00
jvelilla
3c755019aa
Updated content
2012-02-08 08:47:39 -03:00
Jocelyn Fiat
3a9b67c8ad
Better code to test similar functions but with chunked input
2012-02-07 16:05:19 +01:00
Jocelyn Fiat
e21da4a591
Improved the WSF_PAGE_RESPONSE to be more flexible and allow to change some values as expected.
2012-02-07 15:49:02 +01:00
Jocelyn Fiat
69bc4d568c
Added support for chunked input data (see Transfer-Encoding: chunked)
2012-02-07 15:47:55 +01:00
Jocelyn Fiat
cf8d25c4e5
Added HTTP_HEADER.append_header_object and append_array.
...
This is helpful to "merge" two HTTP_HEADER and provide user friendly features
2012-02-07 15:45:44 +01:00
Jocelyn Fiat
2b9ca86501
Added proxy, at least to make it is possible to use http://fiddler2.com/ to inspect the traffic.
2012-02-07 15:44:45 +01:00
Jocelyn Fiat
2f43660628
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2012-02-07 15:13:59 +01:00
Jocelyn Fiat
d8476edf36
Fixed wrong code for postcondition on HTTP_HEADER.string
...
Patch provided by Paul-G.Crismer
2012-02-01 16:53:24 +01:00
Jocelyn Fiat
67e6b460b3
removed unwanted set_status_code, since we already use put_header to set the status code.
2012-02-01 16:05:30 +01:00
Jocelyn Fiat
962154fc81
Eventually fixing trouble with c_strlen being over capacity
...
(added this for testing, and while waiting a fix from EiffelcURL)
2012-02-01 11:57:42 +01:00
Jocelyn Fiat
645b35590b
Improved redirect_now_custom to allow custom status code, custom header, and custom content
2012-02-01 10:57:52 +01:00
Jocelyn Fiat
a1354136fa
Fixed usage of lst[] in web form, now we are url-decoding the name because the [] could escaped...
...
Fixed bad code for assertion related to variable url-encoded name
2012-01-31 17:57:59 +01:00
Jocelyn Fiat
945ef79857
added REQUEST_HANDLER_CONTEXT.string_array_path_parameter (...) to help user handling list/array parameters
...
fixed postcondition WSF_REQUEST.set_meta_string_variable ...
2012-01-31 12:12:41 +01:00
Jocelyn Fiat
2c4df29877
Make sure to return a response
...
Added precondition to check URI_TEMPLATE is valid
2012-01-25 16:27:22 +01:00
Jocelyn Fiat
e6687c7791
Fixed wrong assertion, status_committed instead of status_set
2012-01-24 16:47:12 +01:00
Jocelyn Fiat
754d3f670c
Fixed issue with WSF_FILE_RESPONSE not setting the status code
...
Added Last-Modified
2012-01-23 18:20:25 +01:00
Jocelyn Fiat
8e420de8ec
Fixed wrong code for postcondition in unset_orig_path_info
2012-01-23 15:32:11 +01:00
Jocelyn Fiat
6dc1c0d2b0
Removed most of the "retry" in rescue clauses, since it was hidding critical issue.
...
This should be the choice of the application to "retry" on exception, otherwise let the framework handle this in the lower part.
Better handling of response termination (alias commit)
Added the notion of "status_committed"
2012-01-23 15:31:34 +01:00
Jocelyn Fiat
80d68699b1
added "conversion" to ease the use of HTTP_HEADER
2012-01-23 15:28:06 +01:00
Jocelyn Fiat
fcdf4e456e
fixed compilation (was not up to date with tests.ecf)
2012-01-20 20:04:56 +01:00
Jocelyn Fiat
c92c2a91b4
Corrected remaining issue related to recent addition of REQUEST_ROUTER.make_with_base_url
...
And applied removal of format_name and format_id, and replaced by accepted_format_name, ...
2012-01-20 18:55:03 +01:00
manus
1ab3832685
Removed the ECF bounds license file and replaced them with `license.lic' files.
...
Made sure all license are the Eiffel Forum License 2.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@88213 8089f293-4706-0410-a29e-feb5c42a2edf
2012-01-20 16:35:05 +00:00
Jocelyn Fiat
da9fa4ecc2
Do not add again ctx.headers, since it is already "imported" during the creation of Current request
...
(see HTTP_CLIENT_REQUEST.make)
2012-01-20 15:37:04 +01:00
Jocelyn Fiat
abdd68863d
Removed any "format" related query from router lib, this is too application specific to be there.
...
Better handling of base_url for REQUEST_ROUTER
2012-01-20 15:35:03 +01:00
Jocelyn Fiat
83a8ad3879
separate library .ecf and tests .ecf
...
merged tests .ecf for draft 05 and current implementation
2012-01-19 14:34:04 +01:00
Jocelyn Fiat
1b55b09b64
Fixed WSF_REQUEST.script_url (..) for clean path
...
Added related autotests
2012-01-19 10:25:53 +01:00
Jocelyn Fiat
4cf3393a13
Don't forget to put Content-Length: 0 for redirect without any content
2012-01-17 17:37:26 +01:00
Jocelyn Fiat
4486df14cc
export handler from REQUEST_ROUTER
2012-01-17 07:51:26 -08:00
Jocelyn Fiat
60574ee85f
REQUEST_ROUTER now inherit from ITERABLE [..]
2012-01-17 16:35:52 +01:00
Jocelyn Fiat
7a6c51e47e
Send the Status code, as an header line Status: code reason
2012-01-17 16:34:48 +01:00
Jocelyn Fiat
d8c420c4b7
use READABLE_STRING_8 instead of STRING_8
2012-01-17 16:33:40 +01:00
Jocelyn Fiat
790aa40591
According to http://www.fastcgi.com/docs/faq.html#httpstatus
...
send the Status code, as an header line Status: code reason
2012-01-17 13:49:04 +01:00
Jocelyn Fiat
e506397406
Do not send any Status line back to the FastCGI client
2012-01-16 13:49:38 +01:00
Jocelyn Fiat
434f031680
Synchronized with ejson library
...
Cleaned JSON_ENCODER
2012-01-13 19:04:26 +01:00
jfiat
a6c52c0a7e
Renamed JSON_STRING.unescaped_string as unescaped_string_8
...
+ code cleaning
2012-01-13 17:57:49 +00:00
jfiat
d67e01eea6
Better support for special character and unicode (\n \r \" ... and \uXXXX where XXXX is an hexadecimal value)
...
Added features to JSON_STRING
- make_json_from_string_32 (READABLE_STRING_32)
- escaped_string_8: STRING_8
- escaped_string_32: STRING_32
Added associated autotests
2012-01-13 17:26:23 +00:00
Jocelyn Fiat
e36533bc99
Added JSON_ENCODER
2012-01-12 10:38:43 +01:00
Jocelyn Fiat
d90ecbd5fe
removed obsolete call on WSF_RESPONSE.write_..' by using the up-to-date WSF_RESPONSE.put_..'
2012-01-09 10:21:35 +01:00
Jocelyn Fiat
20281bc922
HTTP_HEADER: - added put_last_modified
...
- added RFC1123 http date format helper
- added put_cookie_with_expiration_date as DATE_TIME
REQUEST: added `execution_variable' to provide a way to keep object attached to the request
and indexed by a string. A typical usage is a SESSION object
2012-01-06 18:27:52 +01:00
jvelilla
6b3a2d3b43
Update examples/restbucksCRUD/readme.md
2011-12-21 15:40:03 -02:00
Jocelyn Fiat
83346c92a7
added REQUEST.execution_variables ... to provide a solution to store data during request execution
...
could be used for SESSION, or any "shared" data inside the same Request
2011-12-18 12:57:24 +01:00
Jocelyn Fiat
6b50ab8c55
applied write_ as put_ renaming to examples
2011-12-18 12:55:42 +01:00
Jocelyn Fiat
c8efa04147
Use put_ instead of write_
2011-12-15 23:52:53 +01:00
Jocelyn Fiat
37860f43b5
various minor changes
2011-12-15 23:38:34 +01:00
Jocelyn Fiat
65a998cec3
use /usr/lib/libfcgi.so instead of /usr/local/lib/libfcgi.so
2011-12-15 20:10:31 +01:00
Jocelyn Fiat
7207a021be
Applied renaming from write_ to put_
2011-12-15 19:34:20 +01:00
Jocelyn Fiat
32373addfa
Renamed write_ feature as put_
2011-12-15 19:04:26 +01:00
Jocelyn Fiat
e16f03b1c2
Fixed stupid mistake in {WGI_NINO_INPUT_SREEAM}.end_of_input
2011-12-15 15:36:47 +01:00
Jocelyn Fiat
1698a06ea0
Fixed typo and missing uri_template reference for draft rest library
2011-12-15 14:40:43 +01:00
Jocelyn Fiat
da3594db50
Now the 'router' library is part of 'wsf'
...
Move hello_routed_world under tests/dev since it was not really an example, but more a dev workspace/test
2011-12-15 14:10:52 +01:00
Jocelyn Fiat
bfa620eee3
Made DEFAULT_SERVICE_LAUNCHER more flexible for the user.
2011-12-15 13:30:19 +01:00
jvelilla
1423412f31
Update read_trailer feature.
2011-12-15 09:18:37 -03:00
jvelilla
0f51925ec1
Initial implementation of wgi_chunked_input_stream
...
as a wrapper of wgi_input_stream
2011-12-15 08:53:50 -03:00
Jocelyn Fiat
b6784ee35c
Use port 9090 for restbuck server
...
mainly to avoid using 80 or 8080 which are often already used (by current webserver, or even skype, or jenkins, or ...)
2011-12-14 16:34:01 +01:00
Jocelyn Fiat
ab5b43d8ef
Forgot to add make_and_launch_with_options to the creation procedures
2011-12-14 15:04:29 +01:00
Jocelyn Fiat
c7366615cf
Added DEFAULT_SERVICE_LAUNCHER.make_and_launch_with_options
...
Added WSF_RESPONSE.redirect_now_with_content (...)
Updated hello_routed_world .. mainly example use to test/develop... not really a nice example
2011-12-14 14:44:06 +01:00
Jocelyn Fiat
b60c41ee1b
Updated readme on how to get source code
2011-12-13 11:43:24 +01:00
Jocelyn Fiat
f9dfeb0034
added head and bottom value in WSF_FILE_RESPONSE, to enable the user to set a head and bottom part easily
2011-12-13 10:35:49 +01:00
Jocelyn Fiat
5e35bc59a9
avoid infinite rescue due to internal error or user code not dealing well with socket disconnection
2011-12-12 21:19:45 +01:00
Jocelyn Fiat
2ed6d92e53
Removed dotnet target for now
2011-12-12 21:18:35 +01:00
Jocelyn Fiat
33d3071cad
Merge branch 'master' of github.com:Eiffel-World/Eiffel-Web-Framework
2011-12-12 18:57:09 +01:00
Jocelyn Fiat
35dde23976
Fixed http_client autotest code
2011-12-12 18:50:40 +01:00
Jocelyn Fiat
390c05b056
Break inheritance from WGI_RESPONSE, since it is not flexible for future improvement.
2011-12-12 18:24:46 +01:00
Jocelyn Fiat
011f8746d6
Fixed HTTP client callers
2011-12-12 18:17:39 +01:00
Jocelyn Fiat
0335226e8b
Renamed DEFAULT_SERVICE as DEFAULT_SERVICE_LAUNCHER
2011-12-12 18:17:27 +01:00
Jocelyn Fiat
68e4ac9a8f
Fixed WSF_FILE_RESPONSE
...
and added WSF_FORCE_DOWNLOAD_RESPONSE
2011-12-12 16:20:06 +01:00
Jocelyn Fiat
f6b293d4ae
Merge changes from Javier
...
- update on RESTbuck examples
- new example
- fixed bad typo in WSF_REQUEST
Reverted some changes such as
- http_client_response: keep the headers as a list to handle multiple message-value with same message-name
Fixed simple and simple_file example
Improved HTTP_HEADER
Changed libcurl implementation for http client
- now the header from the context really overwrite any of the session headers
- better design which is more strict, and remove any doubt about context's header usage
2011-12-12 16:03:38 +01:00
Jocelyn Fiat
89572b4f33
Removed any (put|write)_file_content from the WSF_ or WGI_ OUTPUT classes
...
Now DEFAULT_SERVICE has to be created instead of inherited.
- This seems to be better for new user, and this avoid potential conflict and difference when inheriting between the various DEFAULT_SERVICE implementation.
- remember that DEFAULT_SERVICE, is mainly to help the user to build its very first service.
Use READABLE_STRING_8 as argument whenever it is possible.
Added WSF_RESPONSE_MESSAGE, and WSF_RESPONSE.put_response (a_response_message)
Now WSF_RESPONSE inherit from WGI_RESPONSE
2011-12-12 11:16:15 +01:00
Jocelyn Fiat
8b4f774bab
Handling bad incoming request (keep a check assertion to help during debugging period)
2011-12-12 10:44:50 +01:00
jvelilla
52e6944f37
Merge branch 'master' of github.com:jvelilla/Eiffel-Web-Framework
2011-12-10 18:06:39 -03:00
jvelilla
bf056154d8
Update restbuck client, create and read an order.
...
Update JSON converter, the id is not important, applied the DRY principle.
Update the ORDER_HANDLER to use the meta_string_variable instead of meta_variable from req.
Fix, the key in meta_variable_table, use c.key instead of c.item
2011-12-10 18:05:41 -03:00
jvelilla
a3c50956f1
Update examples/restbucksCRUD/readme.md
2011-12-10 11:02:20 -02:00
jvelilla
0d67533c83
Merge branch 'master' of github.com:jvelilla/Eiffel-Web-Framework
2011-12-09 21:14:18 -03:00
jvelilla
c0c206e9ae
Update the restbuck_client, still work in progress.
...
Update restbuck_server, remove unused class in inherit.
Update libcurl_http_client_request, to parse context headers before the
execution.
Update wgi_input_stream, commented precondition.
2011-12-09 21:11:16 -03:00
jvelilla
36601fd3a4
Update examples/restbucksCRUD/readme.md
2011-12-09 19:16:07 -02:00
jvelilla
9a85c24c0d
Update examples/restbucksCRUD/readme.md
2011-12-09 19:15:33 -02:00
jvelilla
5ef19021eb
Update examples/restbucksCRUD/readme.md
2011-12-09 19:10:09 -02:00
jvelilla
7495d0e6a7
Update examples/restbucksCRUD/readme.md
2011-12-09 19:00:58 -02:00
jvelilla
f27c1f97a3
Update examples/restbucksCRUD/readme.md
2011-12-09 18:59:23 -02:00
jvelilla
b96029a750
Update examples/restbucksCRUD/readme.md
2011-12-09 18:56:49 -02:00
jvelilla
9ef10c749a
Update examples/restbucksCRUD/readme.md
2011-12-09 18:45:50 -02:00
jvelilla
0aa3d81b22
Update examples/restbucksCRUD/readme.md
2011-12-09 18:44:21 -02:00
jvelilla
5d17b0dd29
Update examples/restbucksCRUD/readme.md
2011-12-09 17:24:01 -02:00
jvelilla
5e2c2af18a
Update examples/restbucksCRUD/readme.md
2011-12-09 11:57:47 -02:00
jvelilla
de157be6f1
Update examples/restbucksCRUD/readme.md
2011-12-09 11:57:04 -02:00
jvelilla
f601ae1c8b
Update examples/restbucksCRUD/readme.md
2011-12-09 11:52:18 -02:00
jvelilla
f6f94add80
Update examples/restbucksCRUD/readme.md
2011-12-09 11:43:58 -02:00
jvelilla
a70e75f729
Update examples/restbucksCRUD/readme.md
2011-12-09 11:41:58 -02:00
jvelilla
2dd43ad829
Update examples/restbucksCRUD/readme.md
2011-12-09 11:02:31 -02:00
jvelilla
108396bd91
Update examples/restbucksCRUD/readme.md
2011-12-09 10:56:58 -02:00
jvelilla
e9b7fc4c93
Update examples/restbucksCRUD/readme.md
2011-12-08 20:28:14 -02:00
jvelilla
0dd2812574
Updated documentation
2011-12-08 20:04:39 -02:00
jvelilla
d961544b8b
Updated restbucksCRUD documentation
2011-12-08 18:48:50 -03:00
jvelilla
3313e9cf81
Added basic two basic examples, refactor rename restbucks
...
to restbucksCRUD
2011-12-08 18:43:29 -03:00
jvelilla
39b5a70979
Sync Jocelyn repo
2011-12-07 07:22:51 -03:00
Jocelyn Fiat
379e806166
Update README.md
2011-12-03 14:55:55 +01:00
Jocelyn Fiat
c1e08a1bdc
Update README.md
2011-12-03 14:55:28 +01:00
Jocelyn Fiat
af21520e5d
Update README.md
2011-12-03 14:42:09 +01:00
Jocelyn Fiat
effc6ba81d
fixed markdown syntax
2011-12-03 14:40:54 +01:00
Jocelyn Fiat
019fb539ae
Remove any useless library include from this .ecf
...
we just need default_"connector", router, wsf and http
2011-12-02 13:50:39 +01:00
Jocelyn Fiat
03938b43c3
Fixed compilation issue for CGI and libFCGI connector
...
due to recent changes in interface (use READABLE_STRING_8)
2011-12-02 12:05:07 +01:00
Jocelyn Fiat
e70d67aed5
Integrated new system to handle form_parameter, input_data in relation with MIME handling
...
This is not yet clear how to let the user precise its own MIME handler
but it is in progress
2011-12-01 19:12:26 +01:00
Jocelyn Fiat
de38f46d1d
fixed remaining issue or useless code to set http environment variable
2011-12-01 18:41:51 +01:00
Jocelyn Fiat
8c79a64f0c
Fixed stupid error where we were concatenating ... value by error
2011-12-01 18:38:26 +01:00
Jocelyn Fiat
fff7a5c96d
Added WSF_RESPONSE.write_chunk (s: ?READABLE_STRING_8)
...
to help user sending chunk with "Transfer-Encoding: chunked"
2011-12-01 18:22:47 +01:00
Jocelyn Fiat
1b92403045
Synchronized with Nino
2011-12-01 17:59:35 +01:00
Jocelyn Fiat
59505ccdc4
various renaming and preparation to merge Thread and SCOOP implementation of Eiffel Web Nino
2011-12-01 17:58:01 +01:00
Jocelyn Fiat
8ae4a30ee8
Fixed WSF_RESPONSE.redirect* features
2011-12-01 17:52:31 +01:00
Jocelyn Fiat
8ffe2a8f73
sync with Nino, call to put_readable_string_8
2011-12-01 17:52:00 +01:00
Jocelyn Fiat
800815c8dd
Added put_readable_string_8 to avoid call to .as_string_8
2011-12-01 17:48:15 +01:00
Jocelyn Fiat
769f2bb5a8
Synchronized with EiffelWebNino
2011-12-01 15:28:38 +01:00
Jocelyn Fiat
483f065ef1
relative path for README link
2011-12-01 15:13:15 +01:00
jvelilla
8ff055803d
Update library/protocol/CONNEG/README.md
2011-12-01 09:38:13 -02:00
jvelilla
3b30f4b994
Update library/protocol/CONNEG/README.md
2011-12-01 09:34:11 -02:00
jvelilla
f71bbc07e8
Updated Conneg library, added test cases
2011-12-01 08:13:42 -03:00
jvelilla
faafa894c2
Merge pull request #9 from jocelyn/master
...
Removed main thread and removed shared configuration class
2011-12-01 01:23:35 -08:00
Jocelyn Fiat
89cd5a3b44
Removed initial Thread for the HTTP_HANDLER, this is not needed here
...
Removed HTTP_SERVER_SHARED_CONFIGURATION from the library ... not needed by the library.
Added HTTP_SERVER_SHARED_CONFIGURATION to the example to show how to share the configuration, if needed
2011-11-30 19:05:16 +01:00
jvelilla
9b9bc1f190
Fixed minor issue, added test cases to check language negotiation.
2011-11-30 08:56:13 -03:00
jvelilla
6feaf5757f
Update conneg library and test cases
2011-11-30 07:15:17 -03:00
jfiat
2b7043f670
Fixed bug#18008: Function {CURL_OPT_CONSTANTS}.libcurl_version has wrong type
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@88050 8089f293-4706-0410-a29e-feb5c42a2edf
2011-11-28 08:21:54 +00:00
Jocelyn Fiat
6f4ec89404
Fixed example due to recent interface changes
2011-11-25 20:44:32 +01:00
Jocelyn Fiat
cdfc6851e7
- (WGI|WSF)_RESPONSE(*) renamed write_headers_string as write_header_text
...
- HTTP_HEADER.string does not have the ending CRLFCRLF .. but just CRLF
- WGI_RESPONSE.write_header_text has the responsibility to handle the last blank line CRLF (separating the header from the message)
- HTTP_HEADER.string does not set anymore a default content type as text/html
- added WGI_RESPONSE.write_header_lines (ITERABLE [TUPLE [name,value: READABLE_STRING_8]] mainly as an helper method,
this way the WGI user does not have to know about the CRLF end of line
2011-11-25 20:43:04 +01:00
Jocelyn Fiat
e0ec84611e
Applied recent renaming from WGI_RESPONSE_BUFFER as WGI_RESPONSE
2011-11-25 19:21:45 +01:00
Jocelyn Fiat
2234d3712b
updated WGI specification
2011-11-25 18:25:50 +01:00
Jocelyn Fiat
c89ccfa768
Added missing wgi_connector
2011-11-25 16:27:46 +01:00
Jocelyn Fiat
1a88388ffe
added "redirect" helper feature to WSF_RESPONSE
2011-11-25 16:24:55 +01:00
Jocelyn Fiat
5eab38778a
Added `{WGI_REQUEST}.wgi_*' function to WSF_REQUEST
2011-11-25 16:24:26 +01:00
Jocelyn Fiat
9d457bb978
rename application' as service'
2011-11-25 16:22:44 +01:00
Jocelyn Fiat
42be0b2a4e
Use HTTP_HEADER instead of WSF_HEADER
...
(WSF_HEADER is kept for convenience and existing code)
2011-11-25 15:53:15 +01:00
Jocelyn Fiat
48d4d26cda
better script to check compilation and tests
2011-11-25 14:52:00 +01:00
Jocelyn Fiat
182749d010
Moved implementation of WSF_HEADER to HTTP_HEADER in the http library
2011-11-25 14:51:46 +01:00
Jocelyn Fiat
fd0912904c
Simplified EWSGI interfaces
...
Renamed WGI_RESPONSE_BUFFER as WGI_RESPONSE to avoid confusion
Removed EWF_HEADER and removed related caller from WGI implementation,
now this is only part of WSF library
Added wgi_version, wgi_implementation and wgi_connector to the WGI_REQUEST interface
to give more information to the user
Added back WGI_CONNECTOR to WGI specification, mainly because of `{WGI_REQUEST}.wgi_connector'
simplified WGI_CONNECTOR to contain for now only `name' and `version'
if the implementation of connector inherit from WGI_CONNECTOR (recommended)
this might gives more access to the user using a reverse assignment for specific needs
(but this usage is not recommended due to portability issue on other connector)
Removed useless connector.ecf since now EWF/WGI library provides the helper classes
2011-11-25 14:39:48 +01:00
Jocelyn Fiat
51b912c4f8
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework.wiki
2011-11-25 13:18:46 +01:00
jvelilla
7dd9a30740
Updated HTTP Library Features (markdown)
2011-11-24 09:38:40 -08:00
jvelilla
92c58bbbe0
Updated HTTP Library Features (markdown)
2011-11-24 09:37:45 -08:00
jvelilla
f4b621ba08
Updated HTTP Library Features (markdown)
2011-11-24 09:34:35 -08:00
jvelilla
dc0c90ab46
Updated HTTP Library Features (markdown)
2011-11-24 09:32:07 -08:00
jvelilla
fdef9b0c8f
Updated HTTP Library Features (markdown)
2011-11-24 09:23:42 -08:00
jvelilla
40ec2f6419
Created HTTP client library (markdown)
2011-11-24 09:22:12 -08:00
Jocelyn Fiat
3032b91ff7
Fixed sample example config file after recent location change for "rest" lib
2011-11-23 18:36:56 +01:00
Jocelyn Fiat
772b88f257
Improved run_CI_tests.py and include the compile_all call directly in the python script.
...
If compile_all tool supports -keep ... let's use it. (recent addition)
2011-11-23 16:35:22 +01:00
Jocelyn Fiat
a1cc2d1d1a
fixed rest(-safe).ecf due to recent location change
2011-11-23 15:37:01 +01:00
Jocelyn Fiat
9f90bf56a5
Merge branch 'master' of github.com:Eiffel-World/Eiffel-Web-Framework
2011-11-23 15:31:47 +01:00
Jocelyn Fiat
dbea0e509b
Updated README.md in relation with "rest" lib relocation
2011-11-23 15:27:51 +01:00
Jocelyn Fiat
a3f28e3945
Move "rest" library under "draft/..." since it is more an experiment rather than a real REST library
2011-11-23 15:18:35 +01:00
Jocelyn Fiat
379a6193e9
Update draft/README.md
2011-11-21 18:28:33 +01:00
Jocelyn Fiat
03d9c3785c
updated Eiffel libfcgi README file
2011-11-21 17:43:02 +01:00
Jocelyn Fiat
612915c918
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
...
Conflicts:
library/server/libfcgi/Clib/README.md
2011-11-21 17:33:34 +01:00
Jocelyn Fiat
ff967d6332
Added scripts to help building the libfcgi.dll and .lib from modified source of libfcgi
...
Extracted into "libfcgi" only the files needed to compile the Windows .dll and .lib
2011-11-21 17:07:38 +01:00
Jocelyn Fiat
8d75a04068
Added scripts to help building the libfcgi.dll and .lib from modified source of libfcgi
2011-11-21 16:38:36 +01:00
jfiat
1b446caa27
Removing autotest dotnet target, since Autotest does not support .Net platform for now
2011-11-21 13:54:50 +00:00
Jocelyn Fiat
202ad2861b
updated README to apply 'ext' renamed as 'contrib'
2011-11-21 14:30:03 +01:00
jfiat
24b1be7482
Fixed code from autotest tests to remove warnings
...
Fixed getest ejson_test.ecf configuration file
Added script to allow using getest from Windows.
Note: I did not fixed warning from getest tests, we should apply same change already made for autotest.
it seems autotest and getests are doing the same checking,
I would suggest to either remove getest files or find a way to share test code between getest and autotest tests.
2011-11-21 09:20:46 +00:00
Jocelyn Fiat
44857d28ec
fixed compilation for tests.ecf
2011-11-18 14:56:02 +01:00
Jocelyn Fiat
e3597c0f3b
fixed typo
2011-11-18 14:18:30 +01:00
Jocelyn Fiat
0cce4d8244
Updated "draft" folder which contain potential future addition to EWF
2011-11-18 14:18:22 +01:00
Jocelyn Fiat
aab910ab64
Added "draft" folder to contain potential future addition to EWF
2011-11-18 13:56:07 +01:00
Jocelyn Fiat
257ede7586
restructured CONNEG library
...
fixed various issue in .ecf files
2011-11-18 11:14:30 +01:00
jvelilla
b58e4e19e1
Initial import CONNEG library, support server side
...
content negotiation.
2011-11-18 10:19:54 +01:00
Jocelyn Fiat
6ec37c90a2
Rename "ext" as "contrib" in compile_all.ini as well
...
no need to test the code coming from other projects.
2011-11-17 16:03:29 +01:00
Jocelyn Fiat
49c3e8e789
Renamed "ext" folder as "contrib" folder and reorganized a little bit
...
Renamed any *_APPLICATION as *_SERVICE
mainly because those components
such as WSF_APPLICATION, renamed as WSF_SERVICE
are not always the main application entry, and "service" describe them better
Minor implementation change in WSF_REQUEST
Cosmetics
2011-11-17 15:50:30 +01:00
Jocelyn Fiat
cc11debf08
handle last run failure
2011-11-16 16:18:27 +01:00
Jocelyn Fiat
b71a22d040
Added request method PATCH even if not really used for now, it might in the future
2011-11-16 15:52:00 +01:00
Jocelyn Fiat
7022206a73
Do not print command during script execution
2011-11-16 13:10:35 +01:00
Jocelyn Fiat
b715d674ca
fixed indentation in python script
2011-11-16 09:00:23 +01:00
Jocelyn Fiat
02f5bdd801
Added information output to run_CI_tests.py
2011-11-16 08:57:02 +01:00
Jocelyn Fiat
203d51a97e
updated run_CI_tests.py
2011-11-16 08:48:24 +01:00
Jocelyn Fiat
733296e71e
updated run_CI_tests.py
2011-11-16 08:42:08 +01:00
Jocelyn Fiat
0a497b9a4d
updated run_CI_tests.py
2011-11-16 08:34:00 +01:00
Jocelyn Fiat
4ed91a91a2
updated run_CI_tests.py
2011-11-16 07:51:04 +01:00
Jocelyn Fiat
a76eb75267
removed unused local variables
2011-11-16 07:25:29 +01:00
Jocelyn Fiat
2c94a98730
added a python script to be use inside jenkins CI server
...
(experimental for now)
2011-11-16 07:25:15 +01:00
Jocelyn Fiat
cc960310e9
cosmetic
2011-11-14 19:06:31 +01:00
Jocelyn Fiat
d9daac67d9
cosmetics
2011-11-14 19:05:48 +01:00
Jocelyn Fiat
955f73dee9
Added various README.md (using the markdown syntax)
2011-11-14 19:00:00 +01:00
Jocelyn Fiat
137ed3888c
updated README with links to sub READM.md
2011-11-14 18:46:37 +01:00
Jocelyn Fiat
8382e8f134
sync with Eiffel Web Nino
2011-11-14 16:39:26 +01:00
Jocelyn Fiat
713978d70f
Using `is_verbose' instead of debug clause "nino"
2011-11-14 16:32:28 +01:00
Jocelyn Fiat
b78c44f4a1
Applied the removal of HTTP_INPUT_STREAM and HTTP_OUTPUT_STREAM to the example.
2011-11-14 16:32:09 +01:00
Jocelyn Fiat
0b7ea3c427
Added default WSF_APPLICATION for libfcgi connector
2011-11-14 16:27:55 +01:00
Jocelyn Fiat
1e7b370859
code removal
2011-11-14 16:26:31 +01:00
Jocelyn Fiat
8c02b0d546
Updated libfcgi source code for Windows AND Linux.
...
Cleaning some code and feature clauses.
2011-11-14 15:44:10 +01:00
Jocelyn Fiat
13b09adc8c
Changed the WGI_INPUT_STREAM and WGI_OUTPUT_STREAM interfaces
...
main changes for existing code `read_stream' is renamed `read_string'
2011-11-14 14:17:41 +01:00
jvelilla
9f2abab670
Merge pull request #8 from jocelyn/master
...
Removed HTTP_(INPUT,OUTPUT)_STREAM classes
2011-11-11 03:57:24 -08:00
Jocelyn Fiat
a46c08de11
Removed HTTP_(INPUT,OUTPUT)_STREAM, since it is unlikely that we use something else than TCP_STREAM_SOCKET
...
This way, we remove one indirection for users, and get smaller code.
2011-11-10 22:05:34 +01:00
Jocelyn Fiat
bc2e8b8ee2
Added is_request_method (STRING): BOOLEAN to help users
2011-11-09 18:07:03 +01:00
Jocelyn Fiat
36493b4324
updated readme with better way to get the source code recursively
2011-11-07 11:11:04 +01:00
Jocelyn Fiat
a09908c048
added script to build archive for download area
2011-11-07 01:22:14 -08:00
Jocelyn Fiat
d96ee66a32
sync with Eiffel Web Nino
2011-11-04 20:28:08 +01:00
Jocelyn Fiat
abd67c8caa
applied recent changes related to HTTP_HANDLER.make
2011-11-04 20:27:30 +01:00
Jocelyn Fiat
7669ccfc1d
sync with nino and applied changes to connector
2011-11-04 20:21:35 +01:00
Jocelyn Fiat
53496e010b
removed useless "a_name" argument
...
Fixed typo in on_launched
2011-11-04 19:09:49 +01:00
Jocelyn Fiat
3a6e3592ae
Use recent changes from Nino, to get access to the launched and port information.
...
Quite useful when launching using port=0 to use a random free port.
This is great for testing, this way we can run many tests in the same time without any port blocking.
2011-11-04 12:15:40 +01:00
jvelilla
cef6f30251
Merge pull request #6 from jocelyn/master
...
new event on_launched and on_stopped to ease integration with launching application
2011-11-04 03:51:27 -07:00
Jocelyn Fiat
00ffa50054
added events on_launched and on_stopped to ease integration with launching application
2011-11-04 11:46:56 +01:00
Jocelyn Fiat
07f9a8cec7
applied recent changes from Nino
2011-11-03 18:50:19 +01:00
jvelilla
cac126f2f1
Merge pull request #5 from jocelyn/master
...
Please pull this change
2011-11-03 10:27:27 -07:00
Jocelyn Fiat
c53d4d37a7
added access to the effective port that the server is listening to (useful when we set port to 0 it use a random free port)
...
added verbose , so that we write message to the console only if desired.
2011-11-03 18:13:55 +01:00
Jocelyn Fiat
16cab53fb4
removed compliance on ewsgi, since now we target WSF
...
applied recent changes related to WSF_VALUE
2011-11-02 16:11:40 +01:00
Jocelyn Fiat
a2bf68e18a
Safer interface for WSF_VALUE, when related to STRING value
2011-11-02 15:42:58 +01:00
Jocelyn Fiat
214255c4b9
sync with submodules
2011-11-02 13:30:35 +01:00
Jocelyn Fiat
082b8902ea
Merge branch 'master' of git://github.com/Eiffel-World/Eiffel-Web-Framework
2011-11-02 13:11:09 +01:00
Jocelyn Fiat
ee9722fa18
renamed WSF_(.*)_VALUE as WSF_$1
2011-11-02 13:10:35 +01:00
Jocelyn Fiat
4a81d02d12
Fixed obsolete calls, and compilation error.
2011-10-31 18:42:44 +01:00
Jocelyn Fiat
0f5ae7e153
fixed path to cURL.ecf file, using the correct uppercase
2011-10-31 09:14:43 -07:00
Jocelyn Fiat
179dbceaba
Fixed missing syntax="provisional" , this was preventing compiling with "across" statements
2011-10-31 16:06:10 +01:00
Jocelyn Fiat
45292e0248
Better implementation to get http header for http_client, and to get list of header entries by key,value
2011-10-31 16:05:34 +01:00
Jocelyn Fiat
a38fca267b
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2011-10-31 12:33:20 +01:00
Jocelyn Fiat
d4266a83ec
updated instructions related to submodules
2011-10-31 02:43:44 -07:00
Jocelyn Fiat
83a181ebf1
Fixed remaining 6.8 vs 7.0 compilation issue related to UTF8_(URL_)ENCODER
2011-10-31 09:02:19 +01:00
Jocelyn Fiat
54ecd2b1e8
Merge branch 'master' of github.com:Eiffel-World/Eiffel-Web-Framework
2011-10-31 08:48:44 +01:00
Jocelyn Fiat
da8a216448
removed unused local variable
2011-10-31 08:48:19 +01:00
Jocelyn Fiat
085b520879
Added convenient features to BASE64
...
- decode_string_to_buffer (v: STRING; a_buffer: STRING)
- decode_string_to_output_medium (v: STRING; a_output: IO_MEDIUM)
2011-10-31 08:45:50 +01:00
Jocelyn Fiat
c115a40922
removed unused local variable
2011-10-31 08:43:04 +01:00
Jocelyn Fiat
6f600362e3
Fixed code to be compilable with EiffelStudio 6.8 and 7.0 (due to recent change in UNICODE_CONVERSION) UNICODE_CONVERSION
2011-10-31 08:42:48 +01:00
jvelilla
bd36aa8b04
Added headers to response in HTTP_CLIENT_RESPONSE
2011-10-28 14:25:26 -03:00
Jocelyn Fiat
812f521c88
Merge branch 'master' of github.com:Eiffel-World/Eiffel-Web-Framework
2011-10-27 16:24:40 +02:00
Jocelyn Fiat
beb1bd1599
use '%/123/' syntax, to make sure no editor replace the accentued characters
2011-10-27 16:24:19 +02:00
Jocelyn Fiat
9bbcdc9927
removed unwanted .rc
2011-10-27 16:03:10 +02:00
Jocelyn Fiat
0d637d478a
Fixed a previously character changes in WSF_REQUEST (related to safe_filename), and modified the implementation to use inspect
...
Fixed the request_content_type computation
Cosmetic in REQUEST_RESOURCE_HANDLER_HELPER
2011-10-27 16:00:33 +02:00
Jocelyn Fiat
8e4e7a5084
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
...
Conflicts:
library/server/wsf/src/wsf_request.e
2011-10-27 15:49:12 +02:00
Jocelyn Fiat
95d44890d9
added script to update current git working copy and submodules recursively
2011-10-27 14:58:14 +02:00
Jocelyn Fiat
161a5c720b
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
2011-10-27 14:45:37 +02:00
Jocelyn Fiat
35a4cd7df9
cosmetic, or minor changes
2011-10-27 14:45:14 +02:00
Jocelyn Fiat
70ee7ff47a
Merge branch 'master' of github.com:Eiffel-World/Eiffel-Web-Framework
2011-10-27 14:43:32 +02:00
jvelilla
c9343688f3
Added eel and eapml in EWF libraries.
...
Removed them from gitmodule
2011-10-27 08:29:01 -03:00
jvelilla
f804a705d5
Updated request resource handler.
...
TODO: implement Content-Negotiation
2011-10-26 08:21:50 -03:00
larryl
f17f785ee3
Added simple readme file to cURL library. It tells user the cURL library need 3 DLLs to work.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@87608 8089f293-4706-0410-a29e-feb5c42a2edf
2011-10-25 08:03:57 +00:00
Jocelyn Fiat
926c0a79b7
Start index for list[]=a&list[]=b ... from 1 instead of 0
...
Stick to Eiffel spirit
2011-10-24 17:44:13 +02:00
Jocelyn Fiat
fb7854fbcc
Added visitor patterns to WSF_VALUE
...
Handling UTF-8 unencoding for WSF_VALUE ...
Added WSF_TABLE_VALUE to handle list[]=a&list[]=b ...
Library encoder: added UTF8 facilities
2011-10-24 17:23:36 +02:00
Jocelyn Fiat
663a39d2ec
missing implementation (forgot to uncomment)
2011-10-24 09:07:26 +03:00
jvelilla
6fb36da9ac
Merge remote-tracking branch 'jocelynEWF/master'
...
Conflicts:
examples/restbucks/restbucks-safe.ecf
examples/restbucks/src/resource/order_handler.e
library/server/request/router/src/misc/request_resource_handler_helper.e
2011-10-23 20:58:28 -03:00
jvelilla
3fbd81aeb1
Added eel and eapml modules
2011-10-23 09:10:27 -03:00
jvelilla
6344f964fa
Update delete method to hanlde method not allowed.
...
Added method not allowed to request resource handler helper class.
Update gitmodules
2011-10-23 09:05:12 -03:00
Jocelyn Fiat
14a2c01f41
Applied recent changes on WGI_ and WSF_
...
Moved classes away from ewsgi, restructured, cleaned
2011-10-21 16:58:23 +02:00
Jocelyn Fiat
79e12b8d04
Continued reducing WGI and move implementation to WSF (Web Server Framework)
...
Removed many usage of READABLE_STRING_GENERAL in favor to READABLE_STRING_8
to avoid potential nasty issues in user's code
URI-template is working only with STRING_8, then changed any _GENERAL or _STRING_32 to _STRING_8
2011-10-21 16:58:18 +02:00
Jocelyn Fiat
aec0136739
First try to get a limited WGI_ and use WSF_ as default framework
2011-10-21 16:58:11 +02:00
Jocelyn Fiat
7fd4cdbe44
Code cleaning, and nicer output under debug clause
2011-10-21 13:40:56 +02:00
jvelilla
9f53287226
Update Restbucks example: Conditional GET, PUT.
...
Added a response method to support resource not
modified.
Added a ETAG_UTILS class to calcule md5_digest.
Added ext libs eel and eapml.
2011-10-21 08:26:14 -03:00
Jocelyn Fiat
eaa99c9c61
Used object test
2011-10-19 00:40:04 +02:00
Jocelyn Fiat
5f492d6fb6
removed useless local variable
2011-10-19 00:35:32 +02:00
Jocelyn Fiat
c3f5376ef5
fixed cgi and libfcgi connectors due to recent changes from WGI_APPLICATION
2011-10-14 14:27:54 +02:00
Jocelyn Fiat
21e973f8a4
Removed handling of internal error from WGI_APPLICATION
...
And for now added it into nino connector
2011-10-14 14:15:23 +02:00
Jocelyn Fiat
dec1958909
Fixed issue with index in uri template matcher
2011-10-14 14:14:13 +02:00
Jocelyn Fiat
1453873b6c
Added HTTP_FILE_EXTENSION_MIME_MAPPING
...
Added REQUEST_FILE_SYSTEM_HANDLER to the router library
Added file system handler in "hello_routed_world" example
2011-10-14 14:13:40 +02:00
jvelilla
8255dfd996
Added handle_resource_conflict_response feature to handle 409 reponse,
...
Cosmetic.
2011-10-13 09:07:37 -03:00
Jocelyn Fiat
e66c666e64
removed unwanted first line
2011-10-12 22:56:01 +03:00
Jocelyn Fiat
fcdc164214
Added data and file for post and put request methods
2011-10-12 21:45:57 +02:00
Jocelyn Fiat
4c36d75ef3
Using Transfer-Encoding: chunked in example to send response progressively
2011-10-12 17:23:24 +02:00
Jocelyn Fiat
09030a27d9
sync with submodules
2011-10-12 17:22:46 +02:00
Jocelyn Fiat
b9ca22006b
removed unwanted code
2011-10-12 15:38:45 +02:00
Jocelyn Fiat
593b48fe90
applied recent changes on HTTP_REQUEST_METHOD_CONSTANTS
2011-10-12 11:56:25 +02:00
Jocelyn Fiat
735730b5a0
cosmetic
2011-10-12 11:52:00 +02:00
Jocelyn Fiat
035a133b5b
Addition to "http" library, separated constants into
...
- HTTP_MIME_TYPES
- HTTP_HEADER_NAMES
- HTTP_REQUEST_METHODS
- HTTP_STATUS_CODE (already exists)
Do not set the "Status" header when using WGI_RESPONSE_BUFFER.write_header (...)
Cosmetic
2011-10-12 11:51:49 +02:00
Jocelyn Fiat
0144e97d69
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
...
Conflicts: examples/restbucks/src/domain/json_order_converter.e
Cosmetics
2011-10-11 14:25:22 +02:00
Jocelyn Fiat
26bfd72f5f
Fixed errors recently introduced
2011-10-11 14:16:08 +02:00
Jocelyn Fiat
88542c2762
Merge branch 'master' of github.com:Eiffel-World/Eiffel-Web-Framework
2011-10-11 14:09:10 +02:00
Jocelyn Fiat
12fc54a403
sync with latest JSON
2011-10-11 14:08:41 +02:00
jvelilla
eb44eef885
Update order_handler, fix json_order_converter
2011-10-11 08:18:46 -03:00
Jocelyn Fiat
c2b66d6ca6
Use local curl if compiler is < 7.0.8.7340
...
otherwise, use ISE_LIBRARY cURL
2011-10-11 11:09:00 +02:00
Jocelyn Fiat
6758c4aef4
Temporary fixed issue of using modified cURL (which is cURL provided with EiffelStudio 7.0)
...
This changes will be reverted in the future
2011-10-11 10:46:56 +02:00
Jocelyn Fiat
6408bec628
Updated readme related to mirrored Eiffel cURL library
2011-10-10 17:56:09 +02:00
Jocelyn Fiat
f77ba9ccd8
added submodule ext/ise_library/curl to use the updated Eiffel cURL from ISE.
2011-10-10 17:48:18 +02:00
Jocelyn Fiat
c105c267e7
cosmetic
2011-10-10 16:09:44 +02:00
Jocelyn Fiat
19da4d6fd0
added http diagrams found on the web
2011-10-07 16:05:39 +02:00
Jocelyn Fiat
a9e2dc1135
Added the possibility to specify the supported content types
...
Added FIXME
2011-10-07 15:39:04 +02:00
Jocelyn Fiat
4cd1b67607
Cosmetic
2011-10-07 14:40:04 +02:00
Jocelyn Fiat
34bb793599
Added license.lic and copyright to Javier
2011-10-07 14:36:20 +02:00
jfiat
c836d75191
Added more conversion, and accept READABLE_STRING_8 as argument for make_json
2011-10-07 12:25:00 +00:00
jfiat
3739909e43
Minor changes + cosmetics
...
Added conversion from STRING to JSON_STRING to help users.
2011-10-07 12:19:27 +00:00
Jocelyn Fiat
142dbc39b4
Cosmetic
2011-10-07 14:11:03 +02:00
Jocelyn Fiat
b17887d634
Added "Date:" helper feature in EWF_HEADER
...
Added license.lic to restbuck example, and mainly copyright to Javier
Use HTTP_STATUS_CODES
Minor improvements using object tests
Cosmetic (indentation, ..)
2011-10-07 14:03:31 +02:00
Jocelyn Fiat
f443087e71
Added a first simple test client to test the restbuck client
2011-10-06 19:09:56 +02:00
Jocelyn Fiat
e5eb11b4e7
added support for data in POST request
2011-10-06 19:09:17 +02:00
Jocelyn Fiat
720d8be08a
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2011-10-06 17:37:41 +02:00
jvelilla
ed04b7fba0
Added REQUEST_RESOURCE_HANDLER_HELPER class to contain
...
common http method behavior.
Updated ORDER_HANLDER to use this new class.
2011-10-06 09:54:20 -03:00
Jocelyn Fiat
4c9e7a4331
Added `base_url' for REQUEST_ROUTER (and descendants)
...
Fixed implementation of REST_REQUEST_AGENT_HANDLER to avoid wrong path in inherited routine.
Allow to build a URI_TEMPLATE from another URI TEMPLATE,
this way, if later we have more attribute (status or settings) to URI_TEMPLATE,
we'll be able to change the `template' without breaking the settings
2011-10-05 17:09:16 +02:00
Jocelyn Fiat
cc6992a6fc
added missing call to pre_execute and post_execute
2011-10-05 14:47:59 +02:00
Jocelyn Fiat
71c851ca39
Fixed missing http:// in absolute URL
2011-10-05 14:47:30 +02:00
Jocelyn Fiat
900ed8baea
remove pre_execute, and post_execute, and make process_request frozen
...
this way, the user won't be tempted to redefine feature not being part of pure EWSGI interface.
2011-10-05 14:46:39 +02:00
Jocelyn Fiat
dba55fcfd9
better argument name, to precise the timeout is in second
...
also in comment.
2011-10-05 14:45:47 +02:00
Jocelyn Fiat
456299ccdf
Fixed agent handler for rest library
2011-10-04 17:33:15 +02:00
Jocelyn Fiat
810208f176
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
2011-10-04 16:19:36 +02:00
Jocelyn Fiat
27c637b066
fixed inheritance and precursor bad usage.
2011-10-04 16:19:09 +02:00
Jocelyn Fiat
a0df04a7f2
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
2011-10-04 09:50:14 +02:00
Jocelyn Fiat
bc5d20b221
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2011-10-04 09:49:20 +02:00
jvelilla
7ba3eb9ecd
Updated support for PUT. Now the example support
...
GET, POST, PUT, DELETE.
2011-10-03 09:26:01 -03:00
Jocelyn Fiat
2b14a40898
fixed compilation for ewsgi/tests/tests.ecf file
2011-09-28 17:08:28 +02:00
Jocelyn Fiat
aa20a1423f
Made WGI_VALUE.name as READABLE_STRING_32 .. otherwise it is a pain to manipulate.
...
Changed return type of meta_variable to be WGI_STRING_VALUE ... since the meta variable can not be anything else.
Made sure REQUEST_URI starts with one and only one slash
Internal implementation: the _table now compares object
Removed SELF variable ... at least for now
Be sure to provide a REQUEST_URI even if the underlying connector does not.
2011-09-28 16:41:22 +02:00
Jocelyn Fiat
34c8cfa427
cleaned http_client configuration files
2011-09-28 14:53:34 +02:00
Jocelyn Fiat
f7dcadccd5
Added library/library.index
2011-09-28 14:42:53 +02:00
Jocelyn Fiat
f24df1d745
restructured ewsgi to avoid too many sub cluster
2011-09-28 14:42:34 +02:00
jvelilla
5adf40a9ed
Updated Restbucks examples, handle not method allowed
...
in a better way, added the readme file.
2011-09-28 08:54:12 -03:00
jvelilla
f20bc42b76
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-28 07:36:35 -03:00
jfiat
19637b616b
Be sure to set the Result /= 0 (i.e ECURLE_OK) when error occurred.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@87340 8089f293-4706-0410-a29e-feb5c42a2edf
2011-09-27 08:06:20 +00:00
Jocelyn Fiat
a4df57a7ac
fixed compilation of rest example
2011-09-26 20:54:04 +02:00
Jocelyn Fiat
df59ae579b
fixed typo
2011-09-26 17:19:37 +02:00
jocelyn
2b112da43d
Updated EWSGI specification (markdown)
2011-09-26 08:18:15 -07:00
Jocelyn Fiat
738eb7555f
Changed ITERATION_CURSOR [WGI_VALUE] into ITERABLE [WGI_VALUE] for WGI_REQUEST.*parameters* and similar
...
Applied recent changes on EWF_HEADER
2011-09-26 17:10:05 +02:00
jocelyn
aaf8af85fd
Updated EWSGI (markdown)
2011-09-26 07:53:32 -07:00
jocelyn
beb721ed4b
Updated EWSGI (markdown)
2011-09-26 07:51:08 -07:00
jocelyn
2407cb6a63
Updated EWSGI (markdown)
2011-09-26 07:50:17 -07:00
Jocelyn Fiat
d397d4e35d
Updated changelogs.txt
...
sync with nino and doc
2011-09-23 18:34:44 +02:00
Jocelyn Fiat
eeaa47d4f1
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
2011-09-23 18:23:35 +02:00
Jocelyn Fiat
0db4317a49
Added AutoTest simple cases for ewsgi using Nino web server
2011-09-23 18:22:42 +02:00
Jocelyn Fiat
668847f8e8
Fixing issue with experimental WGI_MULTIPLE_STRING_VALUE
...
Fixed issue with RAW_POST_DATA
2011-09-23 18:21:57 +02:00
Jocelyn Fiat
e7fd7af2c5
Removed put_redirection' and replaced by put_location'
...
Removed useless code in some features
2011-09-23 18:20:23 +02:00
Jocelyn Fiat
24a5c7613d
Use READABLE_STRING(_*) instead of just STRING(_*)
2011-09-23 18:20:16 +02:00
Jocelyn Fiat
d9f6cbe80e
Added feature to shutdown the Nino http server
2011-09-23 18:18:54 +02:00
Jocelyn Fiat
95ec2e77df
Added error reporting in HTTP_CLIENT_RESPONSE
...
Added missing set_connect_timeout
2011-09-23 18:18:27 +02:00
jvelilla
19b5edd9b4
Added validations.
2011-09-23 09:06:23 -03:00
Jocelyn Fiat
d25146dd27
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2011-09-22 16:19:48 +02:00
Jocelyn Fiat
ab1c696837
Added code to create an HTTP_AUTHORIZATION from the client side as well.
...
So now we can either interpret an HTTP_AUTHORIZATION or build one HTTP_AUTHORIZATION
So far , only Basic auth is supported.
2011-09-22 15:13:59 +02:00
Jocelyn Fiat
dae8e1d67d
Made all libraries compilable in any mode (voidsafe or not)
...
Fixed related examples
2011-09-22 15:12:33 +02:00
jvelilla
888bc61522
Initial import, work in progress restbuck example. Only support create
...
a resource
2011-09-22 09:29:59 -03:00
jvelilla
8291905da1
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-22 07:53:23 -03:00
Jocelyn Fiat
d9ba97d33b
Fixed issue where Content-Type and Content-Length were translated into HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH instead of just
...
CONTENT_TYPE and CONTENT_LENGTH
2011-09-21 15:33:40 +02:00
Jocelyn Fiat
33eddd9197
better assertion to ensure `base' is a valid base url
2011-09-21 15:30:20 +02:00
Jocelyn Fiat
458cb56f75
synch with Nino
2011-09-21 15:29:25 +02:00
Jocelyn Fiat
88c015470e
better return type for http client functions
...
added helper features
2011-09-21 15:29:12 +02:00
Jocelyn Fiat
58767bb1c1
add precondition saying the request line should not be empty
2011-09-21 15:26:23 +02:00
jvelilla
f68a713c48
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-21 07:49:40 -03:00
Jocelyn Fiat
0414cd4501
fixed case sensitive path
2011-09-20 18:19:23 +02:00
Jocelyn Fiat
284d7826c8
missing -safe.ecf config file for http_client
2011-09-20 16:59:54 +02:00
Jocelyn Fiat
dff267cd58
Now using READABLE_STRING_... type
2011-09-20 16:57:28 +02:00
Jocelyn Fiat
c2f7c198e0
Added simple HTTP client.
...
For now the implementation is using Eiffel cURL library.
It requires Eiffel cURL coming with next EiffelStudio 7.0 (or from eiffelstudio's repo from rev#87244 )
2011-09-20 16:55:44 +02:00
jfiat
8034123683
Added a few missing CURLOPT_ constants
...
Grouped constants by category
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@87244 8089f293-4706-0410-a29e-feb5c42a2edf
2011-09-20 14:06:20 +00:00
Jocelyn Fiat
b3ef7c846b
Fixed issues in WGI_REQUEST's invariant
...
Fixed issues with guessing the default format for REST handling
Fixed issue with .._ROUTING_.. component.
2011-09-16 20:59:06 +02:00
Jocelyn Fiat
111812c4e9
Fixed issue with uri template router ..
...
it was applying on request_uri instead of path_info
now it match on PATH_INFO
2011-09-16 18:56:02 +02:00
Jocelyn Fiat
92d8357d09
more flexible authenticated query .. on handler, and not anymore on context object
2011-09-16 18:55:26 +02:00
Jocelyn Fiat
64060cfa41
fixed wrong order in parameter for callers of set_meta_string_variable
2011-09-16 18:54:44 +02:00
Jocelyn Fiat
d3239ec41b
added debug_output to WGI_VALUE
2011-09-16 18:54:16 +02:00
Jocelyn Fiat
7b1557a52a
first version of http authorization ..
...
for now, only basic digest
2011-09-16 18:53:57 +02:00
Jocelyn Fiat
c9a4ebcb23
added request_handler_routes_recorder to provide an implementation for `REQUEST_HANDLER.on_handler_mapped'
2011-09-16 15:17:49 +02:00
Jocelyn Fiat
3f899f6aae
Added "on_handler_mapped" callback
...
to allow any REQUEST_HANDLER to record the existing routes.
2011-09-16 15:11:37 +02:00
Jocelyn Fiat
18684d167b
typo
2011-09-16 15:02:08 +02:00
jvelilla
32bb75b9dc
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-16 07:04:40 -03:00
Jocelyn Fiat
d06bc76944
minor enhancement of error lib
2011-09-15 22:02:58 +02:00
Jocelyn Fiat
86825854ca
Added WGI_MULTIPLE_STRING_VALUE
...
Renamed value as WGI_STRING_VALUE.string
Renamed a few classes .._CONTEXT_I as .._CONTEXT
updated example.
2011-09-15 17:49:47 +02:00
Jocelyn Fiat
774cd004db
cosmetic
2011-09-15 15:49:53 +02:00
Jocelyn Fiat
c300cf5b6e
Merge branch 'master' of git://github.com/Eiffel-World/Eiffel-Web-Framework
2011-09-15 11:17:07 +02:00
Jocelyn Fiat
68247a1849
updated README.md
2011-09-15 10:55:14 +02:00
Jocelyn Fiat
22fd7490fe
Simplified interface of "router" library classes
2011-09-14 16:48:27 +02:00
Jocelyn Fiat
8b6e9273fa
applied renaming for rest and router lib
2011-09-14 16:05:01 +02:00
Jocelyn Fiat
76fa3e9ff5
Reorganized library "server/request/rest"
2011-09-14 15:46:45 +02:00
Jocelyn Fiat
1e3770d724
some renaming to use _I for the generic classes, and removed the DEFAULT_ prefix for default implementation
...
this should makes things easier for new users
2011-09-14 15:39:37 +02:00
Jocelyn Fiat
840ae1e6e4
reorganized router library
2011-09-14 15:04:29 +02:00
Jocelyn Fiat
5626e03aa8
- Adopted deferred WGI_VALUE design for Result type of *_parameter and similar functions
...
- Adopted the ITERATION_CURSOR [WGI_VALUE] design for *_parameters and similar functions
- renamed parameter as item
- provided helper function to handle "string" value parameters
Experimental for now.
2011-09-14 14:54:06 +02:00
Jocelyn Fiat
4bcea900a6
better result type (using READABLE_..)
2011-09-14 14:48:08 +02:00
Jocelyn Fiat
b1f5065e63
sync with nino
2011-09-14 14:47:29 +02:00
jvelilla
c37fe9ad79
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-14 07:58:40 -03:00
Jocelyn Fiat
2e53f7e0c4
updated changelogs
2011-09-13 17:12:12 +02:00
Jocelyn Fiat
512f2d2ce5
Added first draft for RESTful library
...
note: the interfaces are likely to change in the future
2011-09-13 17:08:40 +02:00
Jocelyn Fiat
92105ca7b3
updated config file and examples
2011-09-13 17:07:17 +02:00
Jocelyn Fiat
f0c6eec23d
adding routing handler
...
few renaming
2011-09-13 16:49:45 +02:00
Jocelyn Fiat
32197d0513
changing design to use generic instead of anchor types
2011-09-09 16:24:11 +02:00
Jocelyn Fiat
11286eeeef
make router more easy to inherit from and specialized
2011-09-09 14:10:54 +02:00
Jocelyn Fiat
fb8412fcae
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
2011-09-09 08:54:20 +02:00
Jocelyn Fiat
9ec87a4329
Added support during match for {/vars}
...
and also handle cases such as /foo.{format}{/vars} or /foo.{format}{?vars} where no literal exists between the uri template expressions
2011-09-09 08:51:45 +02:00
Jocelyn Fiat
0c7e6c08e7
better type for argument and result (using READABLE_...)
2011-09-09 08:50:29 +02:00
Jocelyn Fiat
c1120a4226
change to standard default values
2011-09-09 08:50:05 +02:00
jvelilla
5c0cae35ef
Sync to jocelyn EWF master
2011-09-08 07:45:10 -03:00
jvelilla
7bd5cdc232
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-08 07:44:27 -03:00
jvelilla
ef85c07603
Update
2011-09-08 07:43:36 -03:00
Jocelyn Fiat
10db3c28a5
sync doc/wiki
2011-09-07 14:31:52 +02:00
jocelyn
820bd7bd6f
Updated EWSGI (markdown)
2011-09-07 05:30:29 -07:00
Jocelyn Fiat
54dc7de189
use `resource' as generic name for uri or uri_template
2011-09-07 12:46:09 +02:00
Jocelyn Fiat
2244d101ea
added changelogs.txt
2011-09-07 12:22:11 +02:00
Jocelyn Fiat
244fdf1b02
Added request methods criteria for the router component.
...
Now one can decide
map_agent_with_request_methods ("/foo/bar/{bar_id}", agent handle_foo_bar, <<"GET">>)
(and similar for non agent way)
This might be useful in pure RESTful environment.
2011-09-07 12:14:03 +02:00
Jocelyn Fiat
3c9fce293f
fixed example .. where we forgot to set the status, and send the header
...
(DbC helped here)
2011-09-07 12:10:48 +02:00
Jocelyn Fiat
eee085dd5a
renamed (un)set_meta_parameter as (un)set_meta_variable
2011-09-07 11:42:53 +02:00
Jocelyn Fiat
2d9e2d12a0
Missing HTTP_ prefix for header meta variable in REQUEST
2011-09-07 11:42:02 +02:00
jocelyn
4a7b6ecc94
Updated EWSGI (markdown)
2011-09-05 06:59:49 -07:00
jocelyn
28d03ddf2a
Updated EWSGI (markdown)
2011-09-05 06:58:15 -07:00
jocelyn
d0bb906a96
Updated EWSGI (markdown)
2011-09-05 06:56:42 -07:00
jocelyn
597f4bc6bd
Updated EWSGI (markdown)
2011-09-05 06:54:29 -07:00
jocelyn
4744bb15c3
Updated EWSGI (markdown)
2011-09-05 06:15:07 -07:00
jocelyn
d0576c6829
Updated EWSGI Open Questions (markdown)
2011-09-05 06:03:33 -07:00
jvelilla
9fef2d71f0
Fixed ecf files that cause a cat-call in the example
...
web server.
2011-09-05 09:18:39 -03:00
Jocelyn Fiat
6a581f6d62
Changed prefix from EWSGI_ to WGI_
...
Changed meta variable type to READABLE_STRING_32
2011-08-30 19:20:42 +02:00
Jocelyn Fiat
060f1482fe
Changed prefix class name from EWSGI_ to WGI_
...
changes in interface for REQUEST and RESPONSE
2011-08-30 19:16:40 +02:00
Jocelyn Fiat
ed8f5d694f
naming: meta_variable(s)
...
changed some string type to READABLE_STRING_32
or READABLE_STRING_8 for now regarding Meta variables (need decision here..)
2011-08-29 12:48:03 +02:00
Jocelyn Fiat
c20600f281
changed prefix GW_ into EWF_ for EiffelWebFramework
...
use READABLE_STRING_GENERAL instead of just STRING
2011-08-25 16:00:18 +02:00
Jocelyn Fiat
53ccaa3fde
sync wiki doc
2011-08-25 14:48:30 +02:00
Jocelyn Fiat
22afbd7ed0
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework
...
Conflicts:
library/server/ewsgi/connectors/nino/src/gw_nino_connector.e
library/server/ewsgi/ewsgi-safe.ecf
2011-08-25 14:48:02 +02:00
Jocelyn Fiat
f6b362217c
Merged REQUEST and ENVIRONMENT into REQUEST
...
renamed ENVIRONMENT_NAMES into META_NAMES
better usage of READABLE_STRING_GENERAL, and other strings
abstract RESPONSE_BUFFER in implementation of EWSGI
for the implementation, inheriting from deferred specification (more to come later)
2011-08-25 14:41:35 +02:00
Jocelyn Fiat
e9ccf855b3
Merged REQUEST and ENVIRONMENT into REQUEST
...
renamed ENVIRONMENT_NAMES into META_NAMES
better usage of READABLE_STRING_GENERAL, and other strings
for the implementation, inheriting from deferred specification (more to come later)
2011-08-25 12:33:20 +02:00
Jocelyn Fiat
4d0148d562
fixing wrong feature usage
2011-08-24 15:54:01 +02:00
jocelyn
d14e65fdc0
Updated EWSGI : open questions (markdown)
2011-08-02 07:40:10 -07:00
jocelyn
c337f49c87
Updated EWSGI (markdown)
2011-08-02 07:39:45 -07:00
jocelyn
ed587493e9
Updated Home (markdown)
2011-08-02 07:39:34 -07:00
jocelyn
e2fb499853
Updated EWSGI (markdown)
2011-08-02 07:35:47 -07:00
jocelyn
59d4eb528c
Created EWSGI (markdown)
2011-08-02 07:35:28 -07:00
jocelyn
afb3890f50
Updated EWSGI: open questions (markdown)
2011-08-02 07:34:52 -07:00
jocelyn
077c140576
Updated Home (markdown)
2011-08-02 07:33:41 -07:00
jocelyn
75dc9fac3e
Updated Source structure (markdown)
2011-08-02 07:32:31 -07:00
jocelyn
637909614b
Updated EWSGI: open questions (markdown)
2011-08-02 07:31:08 -07:00
jocelyn
45db7eb537
Created EWSGI: open questions (markdown)
2011-08-02 07:30:35 -07:00
jocelyn
8a3b5a77e3
Updated EWSGI specification: difference in main proposals (markdown)
2011-08-02 02:57:33 -07:00
jocelyn
4ab99dcd4a
Created EWSGI specification: difference in main proposals (markdown)
2011-08-02 02:52:31 -07:00
jocelyn
cefc95e56f
added current eiffel interfaces for APPLICATION, REQUEST and RESPONSE_BUFFER
2011-08-02 01:02:01 -07:00
jocelyn
0194450892
Updated EWSGI specification (markdown)
2011-08-02 00:21:53 -07:00
jocelyn
a2a1f89299
Updated EWSGI specification (markdown)
2011-08-01 01:19:54 -07:00
jocelyn
b869eb7333
Updated Home (markdown)
2011-08-01 00:36:52 -07:00
jocelyn
7680d071f1
Updated Community collaboration (markdown)
2011-07-29 06:15:51 -07:00
jocelyn
c7f4f45f5e
Updated Libraries (markdown)
2011-07-21 10:01:04 -07:00
Javier Velilla
9dd1439a2f
Refactor to use the new library structure convention.
2011-07-15 08:15:31 -03:00
seibo
e1120040bb
Updated EWSGI specification (markdown)
2011-07-12 16:02:30 -07:00
seibo
e63553555d
Updated EWSGI specification (markdown)
2011-07-12 15:57:54 -07:00
seibo
4904aba360
Updated EWSGI specification (markdown)
2011-07-12 15:48:53 -07:00
seibo
cc7e54a19b
Updated EWSGI specification (markdown)
2011-07-12 14:34:05 -07:00
jocelyn
8389829067
Updated Libraries (markdown)
2011-07-12 10:42:23 -07:00
jocelyn
4880d23846
Updated Libraries (markdown)
2011-07-12 10:42:09 -07:00
jocelyn
d409eac9d6
Updated Libraries (markdown)
2011-07-12 10:41:22 -07:00
jocelyn
13993197d3
Created Libraries (markdown)
2011-07-12 10:39:15 -07:00
jocelyn
d5288a4ebe
Updated Home (markdown)
2011-07-12 10:33:14 -07:00
jvelilla
4a87d5822b
Merge pull request #2 from jocelyn/master
...
Please consider pulling from my repository
2011-07-12 03:36:36 -07:00
Jocelyn Fiat
de77802546
Merge branch 'master' of github.com:jocelyn/EiffelWebNino
2011-07-12 11:09:59 +02:00
Jocelyn Fiat
f7cf91500c
let's have a nino-safe.ecf and also a nino.ecf for non void-safe system
2011-07-12 11:07:09 +02:00
jvelilla
05b4bd90f5
Added test cases from getest to autotest. First version.
2011-07-11 12:07:05 +00:00
jocelyn
6309bbfa52
Updated The Eiffel Web Server Gateway Interface (markdown)
2011-07-08 05:39:44 -07:00
jfiat
6188f99615
added run_autotest.bat scripts
2011-07-08 10:10:40 +00:00
seibo
ab924d3596
Updated The Eiffel Web Server Gateway Interface (markdown)
2011-07-07 16:11:10 -07:00
seibo
13515504c3
Updated The Eiffel Web Server Gateway Interface (markdown)
2011-07-07 15:58:16 -07:00
seibo
831f73b308
Updated EWSGI specification (markdown)
2011-07-07 15:57:14 -07:00
seibo
6cba9a912f
Created EWSGI/specification (markdown)
2011-07-07 15:56:14 -07:00
Jocelyn Fiat
c6162aea7e
Merge branch 'master' of github.com:jocelyn/Eiffel-Web-Framework.wiki
2011-07-07 16:48:52 +02:00
jfiat
28a699e5f2
Converted the autotest test suite to void-safety
...
+ cosmetics
2011-07-07 14:39:06 +00:00
jfiat
591cfb6cfa
Now if you want to use the json utilities for gobo, you just need to include the json_gobo_extension.ecf (note that the related gobo classes are not void-safe)
...
+ cosmetics
2011-07-07 14:03:36 +00:00
jocelyn
1f385658ed
Updated Source structure (markdown)
2011-07-07 06:41:47 -07:00
jvelilla
f4c472cb9f
Updated eJSON to use Eiffel 6.8 version.
...
Basically the changes are:
Replace ? by detachable
indexing by note
removing `is' from features, and in some places replaced by =
In the ecf now we need to include every gobo library, because the gobo.ecf, exclude libraries that are needed.
TODO: the test-suite is not void-safety.
2011-07-07 12:03:25 +00:00
jocelyn
36539997cd
Updated Community collaboration (markdown)
2011-07-07 01:24:05 -07:00
jvelilla
94c5c90eaa
Updated History and Readme files.
2011-07-06 22:12:26 +00:00
jocelyn
b57450d762
Updated Home (markdown)
2011-07-06 03:48:31 -07:00
jocelyn
398139ee19
Updated Home (markdown)
2011-07-06 03:47:02 -07:00
jocelyn
843a3efe0f
Updated Home (markdown)
2011-07-06 03:45:59 -07:00
jocelyn
5a4a749c0f
Updated Tasks Roadmap (markdown)
2011-07-06 02:24:18 -07:00
jocelyn
fbbfc784b1
Created Community collaboration (markdown)
2011-07-06 02:22:41 -07:00
jocelyn
dd7b62f7a1
Updated Home (markdown)
2011-07-06 02:14:45 -07:00
jocelyn
b86057e6a4
Created Spec server architecture (markdown)
2011-07-06 02:05:43 -07:00
jocelyn
6bdfb1d74a
Updated Home (markdown)
2011-07-06 02:05:17 -07:00
Jocelyn Fiat
baae1daa85
Added server side architecture for EWSGI
2011-07-06 11:03:21 +02:00
jocelyn
c9c2b37070
Created Task json (markdown)
2011-07-05 05:37:20 -07:00
jocelyn
5f5a8c6daf
Updated Tasks Roadmap (markdown)
2011-07-05 05:34:06 -07:00
jocelyn
e0eedef3a7
Updated Source structure (markdown)
2011-07-05 05:33:22 -07:00
jocelyn
f9a79c0800
Created Source structure (markdown)
2011-07-05 05:31:59 -07:00
jocelyn
7f35ca21e2
Updated Home (markdown)
2011-07-05 05:22:01 -07:00
jocelyn
71cdfe18ab
Updated Home (markdown)
2011-07-05 05:01:45 -07:00
jocelyn
d9b52d2691
Updated Tasks Roadmap (markdown)
2011-07-05 02:43:47 -07:00
jocelyn
0b7165b260
Updated Eiffel-Web-Framework (markdown)
2011-07-05 02:40:41 -07:00
jocelyn
057cec2b44
Updated Tasks Roadmap (markdown)
2011-07-05 02:38:30 -07:00
jocelyn
23d8adaa3d
Updated Tasks (markdown)
2011-07-05 02:38:05 -07:00
jocelyn
aca99fe6d4
Created Tasks (markdown)
2011-07-05 02:37:56 -07:00
jocelyn
1782fc9f4d
Updated Home (markdown)
2011-06-30 02:24:59 -07:00
jocelyn
509375f7e6
Updated Home (markdown)
2011-06-30 02:24:23 -07:00
Eiffel-World
58f72fdf18
Initial Commit
2011-06-30 02:09:51 -07:00
Javier Velilla
32ff399442
Merge branch 'jocelyn'
2011-06-23 22:59:41 -03:00
Jocelyn Fiat
c7440a2ca0
Fixed the HTTP_SERVER.shutdown_server
2011-06-01 19:13:09 +02:00
Jocelyn Fiat
63cd0610ec
Fixed remote info computing
2011-05-31 14:29:16 +02:00
Javier Velilla
c772fc5194
Commit merge jocelyn changes
2011-05-30 23:16:58 -03:00
Jocelyn Fiat
0fda0dc34c
left adjust request_header_map items.
2011-05-30 22:26:35 +02:00
Jocelyn Fiat
f22f42c463
Fixed nino.ecf by removing the root class since this is a library config file.
2011-05-30 11:31:53 +02:00
Javier Velilla
569a587ffd
Update Readme files
2011-05-28 20:15:48 -03:00
Javier Velilla
6317ca2fe5
Merge git@github.com:jvelilla/EiffelWebNino
...
Conflicts:
README
2011-05-28 19:53:47 -03:00
Javier Velilla
12d9dcfff5
Commit Jocelyn changes.
2011-05-28 19:40:31 -03:00
Jocelyn Fiat
824750e748
Don't forget to reset request data
2011-05-27 22:05:56 +02:00
Jocelyn Fiat
c544da3561
Reset values after processing the request
...
Added port information when starting the server
2011-05-27 19:44:50 +02:00
Jocelyn Fiat
e5e9f9486e
Added force_single_threaded option
...
Modified the interface of process request
default port is now 80
2011-05-27 19:08:35 +02:00
Jocelyn Fiat
720351871b
fixed typo in assertion
2011-05-27 16:03:50 +02:00
Jocelyn Fiat
54b95650c5
Moving things around to make it more structured. and turn into library
2011-05-27 15:21:30 +02:00
Jocelyn Fiat
c553bd1e1e
abstracted the HTTP_HANDLER
...
to let the user integrate at the level of its choice
(either very early so handle itself the header handling, or later to reuse existing code)
2011-05-27 13:07:06 +02:00
Jocelyn Fiat
64cf2b6936
A few change to make it more customizable
...
and prepare integration to EiffelWebReloaded (see on github)
2011-05-26 17:23:21 +02:00
jvelilla
85cf39f3c6
Edited README via GitHub
2011-05-21 09:11:32 -07:00
Javier Velilla
af852498be
Added process directory
2011-05-21 12:46:45 -03:00
Javier Velilla
dfa30471e3
Import HTTPD Eiffel
2011-05-20 08:58:26 -03:00
Javier Velilla
094dc09354
first commit
2011-05-20 08:53:04 -03:00
manus
3af8d34f0f
* Use READABLE_STRING_GENERAL instead of STRING_GENERAL for routines expecting a string. This enables us to use IMMUTABLE_STRINGs as argument without conversion.
...
* As a consequence we are also now using `same_string' instead of `is_equal' to compare strings which will handle any type of strings.
* Enforced the rule that arguments are READABLE_STRING_GENERAL and queries are STRING_32 when unicode is expected.
* The most delicate part of the change was the update of the encoding library. Now we have two queries:last_converted_string_32 and last_converted_string_8 in addition of the typeless last_converted_string. The idea is that if you know that you are converting to something where characters are at least 2 bytes wide, you know that you have to use STRING_32, otherwise it will be STRING_8.
* Unlike STRING_GENERAL, READABLE_STRING_GENERAL does not have a conversion to STRING_32 and thus in a few places we had to use `as_string_32' for explicit conversion which I found better.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@85350 8089f293-4706-0410-a29e-feb5c42a2edf
2011-01-13 23:53:42 +00:00
larryl
d0ca77f104
Added linux-x86' and linux-x86-64' to SVN ignore list
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@83576 8089f293-4706-0410-a29e-feb5c42a2edf
2010-06-15 09:23:11 +00:00
manus
3c0d342704
Updated to match the new config.sh file used on Windows, so that it can work with MSC (already the case) but also with MinGW on a multiprocessor architecture.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@83539 8089f293-4706-0410-a29e-feb5c42a2edf
2010-06-11 23:30:18 +00:00
jfiat
e78d34774e
missing curlopt_userpwd case for `is_valid'
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@83514 8089f293-4706-0410-a29e-feb5c42a2edf
2010-06-10 12:31:16 +00:00
larryl
eb57cb1973
Added CURLOPT_CUSTOMREQUEST
...
More info please check:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
Contributed by Javier Hector
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@83453 8089f293-4706-0410-a29e-feb5c42a2edf
2010-06-08 03:09:06 +00:00
manus
3d669e3043
Moved the experimental branch to be the default for libraries.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@82581 8089f293-4706-0410-a29e-feb5c42a2edf
2010-03-16 03:07:44 +00:00
jvelilla
e638eeaae4
Updated skip_white_spaces, now check %U and %T codes
2010-03-16 00:08:37 +00:00
jvelilla
5d63c63a39
Undo changes to is_a_valid_number, because it's doesn't follow the JSON spec. Tests : fail13.json, fail29.json and fail30.json are valid with this implementation, so we go back to the previous implementation.
2010-03-10 11:16:16 +00:00
jvelilla
a863e495ae
Updated test_json_fail18 , it's a valid JSON, maybe we need to rename this to test_json_pass4 and the file fail18.json to pass4.json
2010-03-10 11:07:33 +00:00
jvelilla
327196a3cf
Removed obsolete cluster.
2010-03-09 11:41:08 +00:00
jvelilla
805874dc9c
Added autotest test suite
2010-03-09 11:37:55 +00:00
paul.cohen
11256d697d
Added getest based test program
2010-03-08 23:46:59 +00:00
jvelilla
b389d532b7
Updated Eiffel configuration file, updated to the new clusters
2010-03-08 23:43:35 +00:00
paul.cohen
a0e570226c
Ported r75 (all JSON value classes) from POC_CONVERTERS_FACTORY branch to trunk
2010-03-08 22:45:41 +00:00
paul.cohen
2710cae1da
Merged converters and factory classes from POC_CONVERTERS_FACTORY to trunk
2010-03-08 15:35:32 +00:00
paul.cohen
8cd53b87eb
New directory layout created
2010-03-08 15:28:47 +00:00
paul.cohen
6bef8ec387
Added new top level directories; library, test, build and example
2010-03-08 15:08:37 +00:00
jvelilla
f86abed2ff
Added History, Readme and License files
2010-03-05 09:18:38 +00:00
manus
683aa808ad
In non-experimental version of EiffelStudio we do not distribute void-safe version of the libraries as it does not make sense (since it would convey the message that it is void-safe when it is actually not void-safe).
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@81549 8089f293-4706-0410-a29e-feb5c42a2edf
2009-11-14 00:46:07 +00:00
larryl
7717502363
Added useful comments
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@81175 8089f293-4706-0410-a29e-feb5c42a2edf
2009-10-15 14:38:50 +00:00
larryl
eefd98c630
Added automatic license files for docking and cURL library
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@80413 8089f293-4706-0410-a29e-feb5c42a2edf
2009-08-25 09:40:26 +00:00
jvelilla
7a31e80f90
Simples fixes to the parser, add is_valid_start_symbol and updated parse_json.
2009-08-14 11:19:54 +00:00
jvelilla
aed8d1a516
Added set_representation feature.
2009-08-14 11:09:38 +00:00
jfiat
ab19cc2b16
use item (i) instead [i]
2009-08-13 06:32:32 +00:00
jfiat
d4da754a9c
Optimized code, and removed extra dependencies.
...
Added void-safe version
2009-08-04 12:01:03 +00:00
larryl
ee8bce82b2
Added curlopt_proxy constant
...
Contributed by Heiko Gering
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@79745 8089f293-4706-0410-a29e-feb5c42a2edf
2009-07-13 09:07:05 +00:00
manus
764372f072
Updated safe-version to also use the API wrapper library otherwise it does not compile.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@78752 8089f293-4706-0410-a29e-feb5c42a2edf
2009-05-18 21:06:56 +00:00
dfurrer
8ddc27b9cb
- Adding the necessary platform-specific implementations (stubs atm) to build EiffelStudio using the Cocoa Vision2 implementation (without GTK+ dependencies).
...
- There is a new target "bench_cocoa" in ec.ecf which builds the native Mac version of EiffelStudio
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@78745 8089f293-4706-0410-a29e-feb5c42a2edf
2009-05-18 16:06:27 +00:00
larryl
5d63551002
Updated cURL library to use API wrapper library
...
Then removed useless classes such as {API_LOADER} {API_LOADER_IMP}, removed useless library references such as Vision2 and WEL
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@78736 8089f293-4706-0410-a29e-feb5c42a2edf
2009-05-18 04:33:10 +00:00
manus
03851ac02e
Updated to 1-5-0 schema version of ECFs.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@78475 8089f293-4706-0410-a29e-feb5c42a2edf
2009-05-01 21:42:03 +00:00
jfiat
7e2a847e39
cosmetic
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@78170 8089f293-4706-0410-a29e-feb5c42a2edf
2009-04-10 08:45:10 +00:00
manus
0759dfe1a7
Use new `note' syntax.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@78146 8089f293-4706-0410-a29e-feb5c42a2edf
2009-04-09 18:51:20 +00:00
jfiat
dae6d64f82
Added curl_easy_getinfo. Associated constants and also CURLOPT_USERPWD.
...
Minor optimization and cosmetics.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@77794 8089f293-4706-0410-a29e-feb5c42a2edf
2009-03-19 08:18:02 +00:00
jfiat
f1f1f5fbf6
Fixed typo
2009-03-18 16:46:27 +00:00
jfiat
548a320448
Cosmetic + Optimization + Assertion + Void-safety
...
(no significant interface changes)
2009-03-18 15:29:41 +00:00
jfiat
6bb5b0bac8
Removed erroneous precondition `exists', since we can call slist_append with null pointer to get an initialized pointer.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@77774 8089f293-4706-0410-a29e-feb5c42a2edf
2009-03-18 08:21:46 +00:00
manus
e3d8fbb263
Removed duplicated `local_realclean' definition which could cause a Makefile execution to fail when
...
launching multiple jobs on a slow file system and slow OS.
Fixed the one already committed for EiffelNet as we had removed `local_clean' which is still needed for
the `clean' target.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@77516 8089f293-4706-0410-a29e-feb5c42a2edf
2009-03-04 00:51:24 +00:00
larryl
caf6d8c528
Added features related with curlopt_readfunction (for setting and using read function), so users can read data from local machine and send the data to server.
...
Added curlopt_put and other constance to {CURL_OPT_CONSTATNS} which used by {CURL_EASY_EXTERNALS}
Contributed by Heiko Gering
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@77404 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-27 13:02:12 +00:00
manus
e880fbde14
Use new syntax for object test and attached/detachable type.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@77298 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-24 23:44:31 +00:00
manus
9e27a52670
To make transition easier, we are preserving `make_from_c' as creation procedure in the STRING classes
...
and therefore we should use it instead of `make_from_c_pointer' that will be obsoleted soon.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@77047 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-06 22:45:24 +00:00
king
816e5b4d6c
Fixed typo from previous commit
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@76967 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-04 17:02:38 +00:00
king
9a4a1a3a40
Fixed typo from previous commit
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@76966 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-04 17:01:51 +00:00
manus
93b74d0d5e
Added back vision2 since used for the API_LOADER_IMP on Unix but this time with an explicit conditional.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@76965 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-04 16:58:59 +00:00
manus
925fdcd979
Made the cURL library void-safe.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@76961 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-04 01:05:57 +00:00
manus
2f1e4e561b
Removed vision2 since not used.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@76960 8089f293-4706-0410-a29e-feb5c42a2edf
2009-02-04 01:04:28 +00:00
manus
5506ab09dc
Removal of `is' keyword.
...
Replacement of `is' by `=' for constant definitions.
Replaced `indexing' by `note'.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@76420 8089f293-4706-0410-a29e-feb5c42a2edf
2008-12-29 20:27:11 +00:00
manus
544b5784ae
Moved API_LOADER class to where it was used, i.e. the cURL library.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@75972 8089f293-4706-0410-a29e-feb5c42a2edf
2008-12-01 19:34:30 +00:00
jvelilla
1359a1ceae
Add descriptions.
...
Change in skip_withe_spaces to handle newline %N and carriage Return %R
2008-08-29 10:49:24 +00:00
jvelilla
fc7c2d151f
Change in the loop, to generate the correct answer (feature visit_json_object).
2008-08-29 10:45:04 +00:00
jvelilla
4e6935655f
Add cluster visitor.
2008-08-29 10:40:12 +00:00
berend
d940da7b13
SmartEiffel doesn't have is_space.
2008-08-27 04:29:42 +00:00
berend
31619fc88e
JSON number is a double precision IEEE number, not a single precision.
2008-08-27 04:29:12 +00:00
berend
bf781a9d25
Changed formatting a bit.
...
Made it compile with SE 1.2r7
2008-08-27 04:26:44 +00:00
jvelilla
31750efb8e
Add accept method (JSON_VISITOR), remove is_xxx queries, remove to_json feature.
...
Improve comments
2008-08-25 01:13:35 +00:00
jvelilla
f83c5d2643
Add Visitor Pattern , JSON_VISITOR and PRINT_JSON_VISITOR
2008-08-25 01:10:42 +00:00
jvelilla
c59bc37a40
Fix Bug in quey 'is_a_valid_number'
...
Remove the space after : in the regular expression "-?(?: 0|[1-9]\d*)(?: \.\d+)?(?: [eE][+-]?\d+)?\b"
2008-08-08 11:17:32 +00:00
jvelilla
b674dbddf7
Add precondition in query i_th
...
Remove infix "@" which is deprecated now.
Add invariant for values to show that it is always not Void.
Add postcondition of add.
2008-08-08 11:12:27 +00:00
jvelilla
ed5f8a9740
Redefine the version of ANY of is_equal.
2008-08-08 11:08:51 +00:00
jvelilla
2c42c0dd1a
Change void to Void.
...
Add invariant for 'object' , object_no_null /= Void
2008-08-08 11:04:33 +00:00
jvelilla
d64e01641b
Reformatted code to Eiffel Standard
2008-08-08 11:01:14 +00:00
berend
fa35ab07a0
Fixed bug where a JSON string had to end with CRLF. But that's optional.
...
Reformatted code to Gobo standard.
2008-08-05 03:26:08 +00:00
berend
0bf10c633f
Reformatted code to Gobo standard.
2008-08-05 03:25:14 +00:00
paulb
9ef3391b26
Added major version to load the shared library according to rules of ldconfig and the like on other OSs.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@74121 8089f293-4706-0410-a29e-feb5c42a2edf
2008-07-18 20:07:15 +00:00
jvelilla
bc1e6653ae
Add Regular expression to check valid numbers and valid unicodes.
...
Add errors to the parser, under development
2008-07-13 03:30:54 +00:00
jvelilla
b9ccf20d53
Add explicit control characters.
2008-07-13 03:19:20 +00:00
jvelilla
3e7f107b36
Update json.ecf,
...
Dependencies on Gobo Library. (Regular Expressions)
2008-07-13 03:17:37 +00:00
jvelilla
aa8c2d0a95
Update parse_number
2008-07-09 02:40:38 +00:00
jvelilla
65cd9e8780
Add new files to test ejson, based on json t test material http://www.json.org/JSON_checker/test.zip
2008-06-09 02:24:33 +00:00
jvelilla
cb595d27f4
Update JSON_OBJECT, put routine, now follows Eiffel Style based on HAST_TABLE
2008-06-09 02:18:34 +00:00
jvelilla
aaa10d178a
Update Parser with is_parsed.
...
Update parse_string
2008-06-09 01:32:28 +00:00
jvelilla
1052c10b8d
Update test
2008-05-25 18:29:54 +00:00
jvelilla
3083f378a6
Update test
2008-05-25 18:28:40 +00:00
jvelilla
8357bf5d72
Update JSON_VALUE and JSON_OBJECT interface
2008-05-25 18:23:25 +00:00
jvelilla
8f3c7beba8
CDD classes
2008-05-25 00:03:46 +00:00
jvelilla
5a779fbb57
Add new test_json_object
2008-05-25 00:02:56 +00:00
jvelilla
4559b7fef5
Add new test_json_object
2008-05-25 00:00:43 +00:00
jvelilla
7dc33a52f6
Update JSON_STRING rutine is_equal
...
Update JSON_OBJECT new features (has_keys, item,get_keys), and fixed an incorrect use of HASH_TABLE
2008-05-24 23:57:04 +00:00
jvelilla
de347f6c98
eJson tests initial import
2008-05-24 15:04:36 +00:00
jvelilla
308fa7f2e7
eJson initial import
2008-05-24 14:23:27 +00:00
larryl
a06fbd5f0b
Use precondition instead of raising an exception.
...
Fixed bug#14062: CURL dynamic library not found exception is causing an internal failure in WEL
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@72612 8089f293-4706-0410-a29e-feb5c42a2edf
2008-03-05 11:06:41 +00:00
larryl
098032e815
Raise an exception when cURL dynamic library not found.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@72546 8089f293-4706-0410-a29e-feb5c42a2edf
2008-02-29 03:43:43 +00:00
paulb
893fce5706
Reverted to is_mac
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@72174 8089f293-4706-0410-a29e-feb5c42a2edf
2008-02-01 16:42:36 +00:00
paulb
839cb26d7e
changed platform query is_mac' to is_mac_os'
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@72173 8089f293-4706-0410-a29e-feb5c42a2edf
2008-02-01 16:36:55 +00:00
paulb
b1952a6e2c
Added query for Mac OS as a platform in PLATFORM.
...
Fixed cURL library to ustilize Mac OS dylib version of libcurl
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@72154 8089f293-4706-0410-a29e-feb5c42a2edf
2008-01-31 21:02:28 +00:00
jfiat
3b231019ea
Added {CURL_OPT_CONSTANTS}.curlopt_followlocation
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71900 8089f293-4706-0410-a29e-feb5c42a2edf
2008-01-14 11:50:55 +00:00
larryl
60b99e48d4
Added `global_cleanup' which declared as curl_global_cleanup() in C.
...
Added comments.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71817 8089f293-4706-0410-a29e-feb5c42a2edf
2008-01-09 06:50:07 +00:00
larryl
987c18198e
Added http header related features. It means we can change http header by setting a list ourself.
...
Wrapped more cURL constants.
Added `release_item' in {CURL_FORM} which is useful to clean the {CURL_FORM} generated by {CURL_EXTERNALS}.formadd_string_string.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71685 8089f293-4706-0410-a29e-feb5c42a2edf
2007-12-31 09:48:53 +00:00
manus
5980a724cc
Removed directory integrated by mistake.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71441 8089f293-4706-0410-a29e-feb5c42a2edf
2007-12-10 17:21:34 +00:00
jfiat
7448567c53
Fully automated EiffelStudio's building using geant scripts:
...
It integrates part of the work done by "es-make" project from ETH (mainly on the checker script)
This is a first step in rewriting the previous $EIFFEL_SRC/scripts/*.eant scripts to build 'ec' and make a new delivery.
Added a few standalone geant scripts in the EiffelStudio's source code, to ease the compilation.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71410 8089f293-4706-0410-a29e-feb5c42a2edf
2007-12-07 12:15:52 +00:00
manus
ea4be7219b
Fixed bug#13627 where we had an incorrect cast.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71400 8089f293-4706-0410-a29e-feb5c42a2edf
2007-12-07 01:15:55 +00:00
manus
9a3e12fe12
Ensured that the library also works in finalized mode. The issue is that in finalized mode
...
more than one copy of `eiffel_curl.h' could be present, meaning that multiple values of
each static declared variables could be present at run-time and in one case, one was properly
initialized, but not the other. Fixes bug#13671.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71399 8089f293-4706-0410-a29e-feb5c42a2edf
2007-12-07 01:08:12 +00:00
manus
c8c23ca064
Fixed various errors in the C interface.
...
Use new C external syntax.
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71204 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-18 05:32:48 +00:00
paulb
4daf5b727a
Set item to default_pointer on dispose, to prevent a panic.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71170 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-16 00:13:35 +00:00
larryl
fe76c9eac5
Added `static' to each variable and function to fix Linux Eiffel Studio finalizing C multiply definition problem.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71101 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-09 10:19:23 +00:00
larryl
81d91930ef
Added class description and license information.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71100 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-09 08:36:46 +00:00
larryl
7e024b589a
Use EIF_REFERENCE instead of EIF_OBJECT.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71086 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-08 08:55:00 +00:00
larryl
65559b8b82
Removed some preprocessors. Made it compiled on Solaris.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71083 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-08 07:52:34 +00:00
larryl
179ac3a128
Improved cURL wrapper library. We can write functions from curl_easy_setopt in pure Eiffel now. Before we have to implement the functions in C.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71081 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-08 07:09:16 +00:00
larryl
6179b0f223
Added constant: curlopt_writefunction
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71028 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-03 06:09:00 +00:00
larryl
77c028a9cd
Cosmetics.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@71027 8089f293-4706-0410-a29e-feb5c42a2edf
2007-11-03 06:08:03 +00:00
larryl
09a1c2d34a
Made cURL wrapper library works on Linux.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@70943 8089f293-4706-0410-a29e-feb5c42a2edf
2007-10-30 11:22:26 +00:00
larryl
2d99813b5d
Removed `libcurl_imp.lib' external object since we use dynamic loading technique now.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@70914 8089f293-4706-0410-a29e-feb5c42a2edf
2007-10-26 13:10:12 +00:00
larryl
6cf3589a43
We can start our executables even without dll (so) files.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@70908 8089f293-4706-0410-a29e-feb5c42a2edf
2007-10-26 08:05:22 +00:00
larryl
1b972b3e24
Removed the lib file which should be generated from C source codes.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@70783 8089f293-4706-0410-a29e-feb5c42a2edf
2007-10-22 10:16:49 +00:00
larryl
a99db5fd43
First commit of libcURL Eiffel wrapper library.
...
git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@70782 8089f293-4706-0410-a29e-feb5c42a2edf
2007-10-22 08:22:30 +00:00