You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Piotr Zarzycki <pi...@gmail.com> on 2019/05/08 04:20:04 UTC

HTTPService and type of contentData

Hi Guys,

I was wondering why contentData property is type String in HTTPService
class ? Behind the stage we are using XMLHttpRequest [1] which seems to
accept object in general.

[1]
https://github.com/apache/royale-asjs/blob/d01a9c710341739c9cc21939ba7a1ec9a73e2197/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as#L634

Thanks,
-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Re: HTTPService and type of contentData

Posted by Piotr Zarzycki <pi...@gmail.com>.
Anyone using HTTPService class in his real world app ? Cause I'm thinking
about making those changes.

czw., 9 maj 2019 o 21:23 Piotr Zarzycki <pi...@gmail.com>
napisał(a):

> What about this subject? Anyone have any opinion? Cause I'm thinking about
> changing contentData to object.
>
> Thanks,
> Piotr
>
> On Wed, May 8, 2019, 6:34 AM Piotr Zarzycki <pi...@gmail.com>
> wrote:
>
>> Another thing is why there is so many places where we are internally
>> using private variables instead public ? It is misleading to me - look into
>> send method - Anyone remember why it was done like that ?
>> Or for example such sets:
>>
>> url = _url;
>>
>> śr., 8 maj 2019 o 06:20 Piotr Zarzycki <pi...@gmail.com>
>> napisał(a):
>>
>>> Hi Guys,
>>>
>>> I was wondering why contentData property is type String in HTTPService
>>> class ? Behind the stage we are using XMLHttpRequest [1] which seems to
>>> accept object in general.
>>>
>>> [1]
>>> https://github.com/apache/royale-asjs/blob/d01a9c710341739c9cc21939ba7a1ec9a73e2197/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as#L634
>>>
>>> Thanks,
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>> <https://www.patreon.com/piotrzarzycki>*
>>>
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>

-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Re: HTTPService and type of contentData

Posted by Piotr Zarzycki <pi...@gmail.com>.
What about this subject? Anyone have any opinion? Cause I'm thinking about
changing contentData to object.

Thanks,
Piotr

On Wed, May 8, 2019, 6:34 AM Piotr Zarzycki <pi...@gmail.com>
wrote:

> Another thing is why there is so many places where we are internally using
> private variables instead public ? It is misleading to me - look into send
> method - Anyone remember why it was done like that ?
> Or for example such sets:
>
> url = _url;
>
> śr., 8 maj 2019 o 06:20 Piotr Zarzycki <pi...@gmail.com>
> napisał(a):
>
>> Hi Guys,
>>
>> I was wondering why contentData property is type String in HTTPService
>> class ? Behind the stage we are using XMLHttpRequest [1] which seems to
>> accept object in general.
>>
>> [1]
>> https://github.com/apache/royale-asjs/blob/d01a9c710341739c9cc21939ba7a1ec9a73e2197/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as#L634
>>
>> Thanks,
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>

Re: HTTPService and type of contentData

Posted by Piotr Zarzycki <pi...@gmail.com>.
Another thing is why there is so many places where we are internally using
private variables instead public ? It is misleading to me - look into send
method - Anyone remember why it was done like that ?
Or for example such sets:

url = _url;

śr., 8 maj 2019 o 06:20 Piotr Zarzycki <pi...@gmail.com>
napisał(a):

> Hi Guys,
>
> I was wondering why contentData property is type String in HTTPService
> class ? Behind the stage we are using XMLHttpRequest [1] which seems to
> accept object in general.
>
> [1]
> https://github.com/apache/royale-asjs/blob/d01a9c710341739c9cc21939ba7a1ec9a73e2197/frameworks/projects/Network/src/main/royale/org/apache/royale/net/HTTPService.as#L634
>
> Thanks,
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*