Re: [Pharo-users] Using ZnClient>>#contentWriter

2019-02-21 Thread Sven Van Caekenberghe
Hi Esteban, > On 21 Feb 2019, at 23:36, Esteban Maringolo wrote: > > Hi all, > > I'm doing this and it works > ZnClient new > method: #PUT; > url: 'http://127.0.0.1:5984/baseball/2'; > contents: (NeoJSONWriter toString: { 'foo' -> 'baz'} asDictionary); > contentType: ZnMimeType

[Pharo-users] Using ZnClient>>#contentWriter

2019-02-21 Thread Esteban Maringolo
Hi all, I'm doing this and it works ZnClient new method: #PUT; url: 'http://127.0.0.1:5984/baseball/2'; contents: (NeoJSONWriter toString: { 'foo' -> 'baz'} asDictionary); contentType: ZnMimeType applicationJson; execute. But if try to use a contentWriter it fails because it can't