Commit Graph

1881 Commits

Author SHA1 Message Date
CI
e92dddfc73 functions: 0.3.147 release [skip ci] 0.3.147 2017-10-09 21:54:08 +00:00
Reed Allman
a4de984f79 add fdk-go to main docs (#412)
* add fdk-go to main docs

* add note about using fdk-go to hot example
2017-10-09 14:43:28 -07:00
CI
559f30a2bf fnlb: 0.0.112 release [skip ci] fnlb-0.0.112 2017-10-09 21:40:51 +00:00
CI
ff8f974fbd functions: 0.3.146 release [skip ci] 0.3.146 2017-10-09 21:39:35 +00:00
Reed Allman
7f15d5f89b don't run release on forks (#411)
copied https://github.com/fnproject/cli/pull/71
2017-10-09 14:29:46 -07:00
CI
dde9461b39 fnlb: 0.0.111 release [skip ci] fnlb-0.0.111 2017-10-09 19:36:50 +00:00
CI
d656a1521a functions: 0.3.145 release [skip ci] 0.3.145 2017-10-09 19:35:31 +00:00
Reed Allman
467b65ccc8 Merge pull request #364 from fnproject/json-format-new
[FEATURE] JSON hot format
2017-10-09 12:25:03 -07:00
CI
e69e7d6047 fnlb: 0.0.110 release [skip ci] fnlb-0.0.110 2017-10-09 18:51:02 +00:00
CI
94535df3c0 functions: 0.3.144 release [skip ci] 0.3.144 2017-10-09 18:49:38 +00:00
Chad Arimura
318e0fab97 Update README.md 2017-10-09 11:38:57 -07:00
CI
2ff5157375 fnlb: 0.0.109 release [skip ci] fnlb-0.0.109 2017-10-08 17:09:10 +00:00
CI
8f1ae350eb functions: 0.3.143 release [skip ci] 0.3.143 2017-10-08 17:07:54 +00:00
CI
1916026c9c fnlb: 0.0.108 release [skip ci] fnlb-0.0.108 2017-10-08 17:05:10 +00:00
CI
b5c3ad13e2 functions: 0.3.142 release [skip ci] 0.3.142 2017-10-08 17:03:48 +00:00
Chad Arimura
0db83c4ef7 Update README.md 2017-10-08 09:57:28 -07:00
Chad Arimura
d80711b372 Update README.md 2017-10-08 09:55:02 -07:00
Chad Arimura
83163f4bb7 Update README.md 2017-10-08 09:54:24 -07:00
Chad Arimura
82caa0034b Update README.md 2017-10-08 09:53:32 -07:00
Denis Makogon
8f5ac1ac98 Func example in Python would pushed be later 2017-10-08 13:07:07 +03:00
Denis Makogon
22b5140f56 Do not expect function to set response code 2017-10-07 03:07:21 +03:00
Denis Makogon
d3314fa894 Input --> I/O 2017-10-07 03:04:56 +03:00
Denis Makogon
e4684096f7 Fmt and docs 2017-10-07 02:59:08 +03:00
Denis Makogon
6141344e5f Error before sending json object if something bad happend with reading a request body 2017-10-07 02:33:43 +03:00
Denis Makogon
5e9bf0d708 Fixing doc 2017-10-07 02:32:42 +03:00
Denis Makogon
6682de4768 Addressing comments 2017-10-07 02:28:56 +03:00
Denis Makogon
e8f317abd4 Addressing more comments
tests do assertion on request data and headers
 doc fixed
2017-10-07 02:24:07 +03:00
Denis Makogon
181ccf54b4 Addressing more comments + tests 2017-10-07 02:11:49 +03:00
Denis Makogon
9f3bfa1005 Read request body and see if it's not empty then decide whether write it or not 2017-10-07 01:24:43 +03:00
Denis Makogon
b4b5302a44 Addressing certain comments from last review 2017-10-07 01:20:53 +03:00
Denis Makogon
11e5c80b4f Fixing docs 2017-10-07 01:04:42 +03:00
Denis Makogon
de7b4e6067 Returning error instead of writing it to a response writer 2017-10-07 00:52:01 +03:00
Denis Makogon
7dd9b5a4cd We still can write JSON request object in parts
except just copying content from request body to STDIN
  we need to write encoded data,
  so we're using STDIN JSON stream encoder.
2017-10-07 00:43:09 +03:00
Denis Makogon
3ae55af392 Adding JSON format validation API tests 2017-10-07 00:43:09 +03:00
Denis Makogon
588d9e523b Do not forget to close request body 2017-10-07 00:43:09 +03:00
Denis Makogon
c2ee67fb21 Revisiting request body processing 2017-10-07 00:43:09 +03:00
Denis Makogon
1f589d641e Let function write headers to a response 2017-10-07 00:43:09 +03:00
Denis Makogon
caf1488dd9 Make Dispatch cleaner 2017-10-07 00:43:09 +03:00
Denis Makogon
2250e1d08c Get rid of content-length-based copying 2017-10-07 00:43:08 +03:00
Denis Makogon
1cdd241920 Trying to avoid buffers and write directly to pipe
this change makes Dispatch write request body and
 http headers directly to pipe one by one
 in case of non-empty request body,
 if not - write headers and close finalize JSON
2017-10-07 00:43:08 +03:00
Denis Makogon
955b294bc6 Trying to avoid any buffering 2017-10-07 00:43:08 +03:00
Denis Makogon
da9629d8dc Use STDIN as writer for encoding func's JSON input data instead of buffering 2017-10-07 00:43:08 +03:00
Denis Makogon
0316cd90a1 Dismiss redundant function 2017-10-07 00:43:08 +03:00
Denis Makogon
3fb040f293 Addressing comments
What's new?
  - unmarshal JSON response only in case of HTTP response writer
2017-10-07 00:43:07 +03:00
Denis Makogon
783490dc79 Addressing certain comments
What's new?
 - better error handling
 - still need to decode JSON from function because we need status code and body
 - prevent request body to be a problem by deferring its close
 - moving examples around: putting http and json samples into one folder
2017-10-07 00:43:07 +03:00
Denis Makogon
1882845a61 Respond with any error that happends during JSON dispatching 2017-10-07 00:43:07 +03:00
Denis Makogon
3da9ad4328 Using io.LimitReader as the way to control size of request body with respect to content length 2017-10-07 00:43:07 +03:00
Denis Makogon
ecaa5eefbf Cleaning up code
Getting rid of request url, call id, method: all of them are
 redundant and available through env
2017-10-07 00:43:07 +03:00
amykang2020
b6b9b55ca9 apply/make Travis's json-format branch prototype to work with latest restructured master; added StatusCode to JSONOutput server-function contract 2017-10-07 00:43:07 +03:00
CI
b8d7154747 fnlb: 0.0.107 release [skip ci] fnlb-0.0.107 2017-10-06 15:54:21 +00:00