If I want to send post request, renderWithRequest is the best option.
在 2017/11/30 20:09,“misakuo”<[email protected]> 写入:
We already have the HttpAdapter abstract in native, why is not do customize
in here?
In fact, the request is not always bound to the WXSDKInstance
2017-11-30 19:55 GMT+08:00 杨 劭君 <[email protected]>:
> +1, customize request header is useful
>
> 在 2017/11/30 17:19,“Adam Feng”<[email protected]> 写入:
>
> +1, adding custom header (such as cookie) to request is useful, it
> should be supported both on iOS and Android.
>
> Thanks.
> Adam Feng
>
> On 30 Nov 2017, 5:16 PM +0800, xing zhang <[email protected]>,
> wrote:
> > Hi all,
> >
> > According to my observation, you can specify a URL or js content to
> > render a page, for URL , then WeexSDK build a request for download
> the
> > resource and pour into the engine to
> >
> > render. But in most case, we need customize a request for
> downloading a
> > resource, and we can setup our request userAgent and headers, our
> server
> > can receive these header to
> >
> > customize response for a request from a device.
> >
> > As for this we can expose a `renderWithRequest` interface for
> > WXSDKInstance, is this way convenient ?
> >
> > comments? please
>
>
>