Skip to content

HttpRequest.open and HttpRequest.send method documentation unclear. #1

@junzhengca

Description

@junzhengca

https://krkrz.github.io/docs/plugin/index.html

Documentation for both methods are extremely unclear, especially for experienced JavaScript coders.

open

HttpRequest.open
   機能/意味
   指定したメソッドで指定URLにリクエストする

I assumed by the description that I will be able to specify a full URL, and this method will actually request the service. However from examples given, it is clear that I can only specify a protocol and a domain name, without payload, even GET payloads.

It won't send the request, which makes ※常に非同期での呼び出しになります this statement false.

send

HttpRequest.send
   機能/意味
   リクエストの送信。送信処理は非同期実行されます。

data	送信するデータ
         octetの場合 : そのまま送信
         文字列の場合 : 規定のエンコードで処理して送信
          その他 : データは送信されません
storeStrorage	レスポンス保存先ファイル。指定された場合はプロパティ responseは 設定されません

This is completely false, by contradiction the example sent GET payload instead within storeStorage parameter.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions