56 Commits

Author SHA1 Message Date
Jimmy Cuadra
e3cf7a38a1 Remove code for building full bodies from streams. 2018-05-16 01:21:59 -07:00
Jimmy Cuadra
a27adc2f73 Use Vec<u8> for request and response bodies. Use http's API for creating requests and responses. 2018-05-16 01:11:37 -07:00
Jimmy Cuadra
c9454caff1 Update request/response header logic for new style. 2018-05-16 00:40:51 -07:00
Jimmy Cuadra
f0f4f9bd17 Detect header attributes as name/value pairs. 2018-05-15 22:57:06 -07:00
Jimmy Cuadra
a035c233be Remove remaining references to hyper and use new header style in docs. 2018-05-15 01:49:42 -07:00
Jimmy Cuadra
7b1e22eea4 Rewrite Api's ToTokens impl to avoid calls to append_all with string literals. 2018-05-15 01:32:38 -07:00
Jimmy Cuadra
5bc253b324 Rewrite request and response ToTokens to avoid calls to append_all with string literals. 2018-05-15 01:32:38 -07:00
Jimmy Cuadra
f6b6c94675 Preserve span information for fields. 2018-05-13 00:23:57 -07:00
Jimmy Cuadra
c86cdb29b3 Fix another bug and use a more useful variable name for named path segments. 2018-05-13 00:09:39 -07:00
Jimmy Cuadra
38746660b6 Use a custom parser for the raw input. 2018-05-12 23:56:23 -07:00
Jimmy Cuadra
8f6bc5af77 Fix remaining compiler errors. 2018-05-11 08:50:39 -07:00
Jimmy Cuadra
09e377d68e Extract relevant types out of the metadata's fields. 2018-05-04 20:13:34 -07:00
Jimmy Cuadra
dfaf1c7da1 Rearrange some code. 2018-05-04 19:39:48 -07:00
Jimmy Cuadra
5e9a3be5d4 Simplify code with ToTokens::into_tokens. 2018-05-04 19:31:42 -07:00
Jimmy Cuadra
2a84e038c4 Remove parse module. 2018-05-04 18:53:03 -07:00
Jimmy Cuadra
4c46df9a59 Update strip_serde_attrs, uncomment code. 2018-05-04 18:50:22 -07:00
Jimmy Cuadra
ab106f75ac ExprStruct --> Response 2018-05-04 18:46:48 -07:00
Jimmy Cuadra
a1929e38cf ExprStruct --> Request 2018-05-04 17:32:12 -07:00
Jimmy Cuadra
ba6eef9c76 Switch TryFrom back to From since proc macros must panic on errors. 2018-05-04 17:07:35 -07:00
Jimmy Cuadra
4db09dac8d ExprStruct --> Metadata 2018-05-04 03:52:55 -07:00
Jimmy Cuadra
17b11d1a25 WIP 2018-05-04 03:33:08 -07:00
Jimmy Cuadra
0f32ca01db Add complete documentation. 2017-07-01 17:22:40 -07:00
Jimmy Cuadra
b292a3e776 Improve test coverage, fix a misplaced comma bug, implement missing newtype body support for responses. 2017-07-01 16:24:44 -07:00
Jimmy Cuadra
84562c4260 Strip serde attributes on aggregate Request and Response types. 2017-07-01 15:26:03 -07:00
Jimmy Cuadra
dce17dbb64 Add support for header fields in responses. 2017-07-01 11:29:23 -07:00
Jimmy Cuadra
6d82e06600 Derive Serialize for RequestPath so the serde attributes get stripped. 2017-06-30 18:09:34 -07:00
Jonas Platte
62971e63cd Implement substitution of variables in endpoint paths 2017-07-01 01:53:19 +10:00
Jonas Platte
5180297d81 Refactor request module to reduce code duplication 2017-07-01 01:53:19 +10:00
Jonas Platte
170e00a487 Implement setting of query parameters 2017-07-01 01:53:19 +10:00
Jimmy Cuadra
e40496b460 Update dependencies and reorganize modules. 2017-06-29 04:33:06 -07:00
Jimmy Cuadra
35362e78a6 Add newtype body field support for responses. 2017-05-21 01:52:16 -07:00
Jimmy Cuadra
58fab938b0 Add newtype body fields to the hyper request. 2017-05-19 05:58:04 -07:00
Jimmy Cuadra
90c3654254 Allow a single field to be specified as the entire request body. 2017-05-19 05:45:23 -07:00
Jimmy Cuadra
fc46b9a58b Silence warnings for conditionally used traits and variables. 2017-05-14 17:56:55 -07:00
Jimmy Cuadra
44164a7299 Derive serde traits for the main request/response structs. 2017-05-14 17:36:57 -07:00
Jimmy Cuadra
24370f3d4c Change syntax for meta items and remove them after use. 2017-05-14 17:34:21 -07:00
Jimmy Cuadra
f624e1ff50 Yield only body fields from RequestBodyFields. 2017-05-14 16:41:25 -07:00
Jimmy Cuadra
3893ab0022 Add commas after struct fields. 2017-05-14 16:40:53 -07:00
Jimmy Cuadra
c55c71dd56 Use FutureFrom instead of TryFrom for responses. 2017-05-14 04:11:35 -07:00
Jimmy Cuadra
1a56b35f17 Propagate errors instead of panicking. 2017-05-14 03:12:47 -07:00
Jimmy Cuadra
1d1ae0410e Obfuscate imported traits and use the Endpoint trait to access metadata for hyper request construction. 2017-05-13 23:14:07 -07:00
Jimmy Cuadra
b6064d1e01 Use the real endpoint path for the hyper request. 2017-05-13 23:09:50 -07:00
Jimmy Cuadra
13c9daf21b Deserialize response body. 2017-05-13 23:05:58 -07:00
Jimmy Cuadra
f48f1c1bee Add request body to hyper requests. 2017-05-13 23:03:22 -07:00
Jimmy Cuadra
ef3ee2d2f3 Add RequestBody and ResponseBody structs. 2017-05-13 18:30:19 -07:00
Jimmy Cuadra
06388333af Implement ToTokens for Api, Request, and Response. 2017-05-13 18:16:43 -07:00
Jimmy Cuadra
029daf3e12 Split code into more modules. 2017-05-13 17:52:17 -07:00
Jimmy Cuadra
b1d5d50e91 Categorize response fields. 2017-05-13 17:22:53 -07:00
Jimmy Cuadra
187a236708 Categorize request fields. 2017-05-13 17:20:19 -07:00
Jimmy Cuadra
a3c855835a Add methods for generating request and response types. 2017-05-13 02:02:40 -07:00