Branch: Tag:

2019-06-14

2019-06-14 11:49:24 by Stephen R. van den Berg <srb@cuci.nl>

Web.Api.Google: Catch errors, then pass them on to the callback.

This is a bit of a kludge, the API should be streamlined with regard
to where and when exceptions are thrown. This currently is done
in a slightly haphazard way.

2019-05-29

2019-05-29 14:59:52 by Stephen R. van den Berg <srb@cuci.nl>

Web.Api: Add rest args to the callbacks.

2019-05-24

2019-05-24 14:42:02 by Stephen R. van den Berg <srb@cuci.nl>

Web.Api: Add and rewrite support for all Google APIs (past/present/future).

2019-03-19

2019-03-19 12:33:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '722771973bd' into patches/lyslyskom22891031

* commit '722771973bd': (6177 commits)
Verify that callablep responses are aligned with reality.
...

2018-11-04

2018-11-04 16:11:11 by Arne Goedeke <el@laramies.com>

Merge remote-tracking branch 'origin/master' into new_utf8

2018-11-03

2018-11-03 14:21:37 by Marcus Comstedt <marcus@mc.pp.se>

Merge remote-tracking branch 'origin/8.1' into gobject-introspection

2018-02-03

2018-02-03 09:48:55 by Peter Bortas <bortas@gmail.com>

Merge branch '8.1' into peter/travis

2018-01-18

2018-01-18 12:01:20 by Martin Nilsson <nilsson@fastmail.com>

Promise is always present.

2017-07-06

2017-07-06 21:17:44 by Bill Welliver <bill@welliver.org>

misc: remove executable bit

2017-07-06 17:37:55 by Bill Welliver <bill@welliver.org>

misc: remove executable bit

2017-01-18

2017-01-18 11:59:02 by Pontus Östlund <ponost@roxen.com>

Removed invalid method chaining when Promises is used.

2016-07-29

2016-07-29 13:19:08 by Martin Nilsson <nilsson@fastmail.com>

We always have Protocols.HTTP.Promise.

2016-07-04

2016-07-04 18:08:17 by Martin Nilsson <nilsson@fastmail.com>

It's tedious to write trim_all_whites. Make trim the canonical name.

2016-05-20

2016-05-20 20:04:28 by Pontus Östlund <ponost@roxen.com>

Protocols.HTTP.Promise: The arguments are now passes as an object of class Arguments for better type cheking and more coherent method signatures for the request methods.
Also some refactoring.

Web.Api.Api: Using Protocols.HTTP.Promise for the requests if available and applicable.

2016-05-09

2016-05-09 22:21:49 by Pontus Östlund <poppanator@gmail.com>

Protocols.HTTP.Query: Fixed an old bug (https://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7676) where basically the timeout in timed_async_fetch wasn't reset each new data read.
This timeout had it's own property (data_timeout) which now is "deprecated" since the property "timeout" pretty much serves the same purpose, but on connection. So now timeout is the default value to use unless data_timeout is explicitly set, in which case that value will be used.
Since there was no proper way to set a max time for the entire operation (well, that was by accident and not intention how the data_timeout in timed_async_fetch worked) the new property "maxtime" has been added. If this is set (default is 0=indefinetly) the request will be aborted after maxtime second even if data is still being read.

So in short:

data_timeout = 0 // unless explicitly set
timeout = 120 // connection timeout, and then data read timeout
maxtime = 0 // 0 = off, otherwise the entire operation must be done within maxtime seconds or else the request is aborted

Protocols.HTTP.Session: Added some documentation

Protocols.HTTP.Promise: New module which utilise the new Concurrent.Promise/Future stuff for HTTP requests. Internally uses Protcols.HTTP.Session for the actual HTTP stuff.

Web.Api.Api: Now fetches data asynchronously when async calls are made.

Concurrent: on_success and on_fail now returns the object being called so that they can be chained.

Parser.Markdown: Fixed the #require macro directive.

2016-04-22

2016-04-22 12:05:31 by Pontus Östlund <ponost@roxen.com>

Web.Api.Api: Fixed so that POST actions actually works.

It now also tries to detect if a file is being uploaded. This works by looking at the parameter values and if a value contains "filename=..." a multipart message will be created. So in short this would look something like:

string file = "the-file.png";
string data = Stdio.read_file(file);
mapping params = ([ "the_file_param" : "filename=" + file ]);

api->post("method/endpoint", params, data);

2016-04-22 11:41:33 by Pontus Östlund <ponost@roxen.com>

Web.Api.Api: Fixed so that POST actions actually works.

It now also tries to detect if a file is being uploaded. This works by looking at the parameter values and if a value contains "filename=..." a multipart message will be created. So in short this would look something like:

string file = "the-file.png";
string data = Stdio.read_file(file);
mapping params = ([ "the_file_param" : "filename=" + file ]);

api->post("method/endpoint", params, data);

2016-04-06

2016-04-06 14:26:11 by Pontus Östlund <ponost@roxen.com>

Web.Api.Api: When running async the requests gets stored so that they can be forcefully closed if something goes wrong. The public method "close_connections()" will close all open connections.

2016-04-06 14:25:09 by Pontus Östlund <ponost@roxen.com>

Web.Api.Api: When running async the requests gets stored so that they can be forcefully closed if something goes wrong. The public method "close_connections()" will close all open connections.

2016-04-06 12:09:41 by Pontus Östlund <ponost@roxen.com>

Web.Api.Api: If running async and the response isn't 200 the callback is now called anyway. If the response status is 301 or 302 the response headers is sent to the callback, otherwise 0 is send to the callback which is the same as if an error occured (this will happen if the request timed out or instance).

2016-04-06 12:05:18 by Pontus Östlund <ponost@roxen.com>

Web.Api.Api: If running async and the response isn't 200 the callback is now called anyway. If the response status is 301 or 302 the response headers is sent to the callback, otherwise 0 is send to the callback which is the same as if an error occured (this will happen if the request timed out or instance).

2016-01-20

2016-01-20 13:12:46 by Pontus Östlund <ponost@roxen.com>

Added the posibility to define the HTTP request timeout in async queries.

Fixed a typo in pike_to_html.pike

2016-01-20 13:12:03 by Pontus Östlund <ponost@roxen.com>

Added the posibility to define the HTTP request timeout in async queries.

Fixed a typo in pike_to_html.pike

2015-10-14

2015-10-14 20:37:00 by Martin Nilsson <nilsson@fastmail.com>

Backport from 8.1

2015-10-12

2015-10-12 18:19:55 by Martin Nilsson <nilsson@fastmail.com>

Ident cpp to 0.

2015-10-12 18:01:05 by Martin Nilsson <nilsson@fastmail.com>

Added #pike.

2015-10-12 18:01:05 by Martin Nilsson <nilsson@fastmail.com>

Added some protected modifiers.

2015-10-12 13:27:19 by Pontus Östlund <ponost@roxen.com>

Updated all references since the modules were moved from root namespace to the Web namespace

2015-10-12 13:26:30 by Pontus Östlund <ponost@roxen.com>

Moving Auth.pmod to Web.pmod/Auth.pmod and WebApi.pmod to Web.pmod/Api.pmod

2015-10-12 12:53:37 by Pontus Östlund <ponost@roxen.com>

Updated all references since the modules were moved from root namespace to the Web namespace

2015-10-12 11:51:56 by Pontus Östlund <ponost@roxen.com>

Moving Auth.pmod to Web.pmod/Auth.pmod and WebApi.pmod to Web.pmod/Api.pmod