1. 3 years ago

    Alan LeRoy

    16 Feb 2020 User since 2020

    I have managed to get HTTPServer working but I can not successfully access the body object in the DidReceiveRequest event handler. In my case this contains JSON data but I have been unable to retrieve this. Also this event is to return an object but I am unclear what format/properties this object should contain from the documentation.

    Thanks, for any and all help.

  2. andrea

    17 Feb 2020 Administrator User since 2016

    The body parameter of that event contains a Data object containing the UTF8 representation of the JSON string. You can't decode it to the String or Map representation of the JSON value because of a bug, we will fix it in the next release and we will improve the documentation.

or Sign Up to reply!