Class Request

java.lang.Object
elemental2.dom.Request
All Implemented Interfaces:
Body

@JsType(isNative=true, namespace="<global>") public class Request extends Object implements Body
  • Field Details

    • bodyUsed

      public boolean bodyUsed
    • cache

      public String cache
    • credentials

      public String credentials
    • destination

      public String destination
    • headers

      public Headers headers
    • integrity

      public String integrity
    • isHistoryNavigation

      public boolean isHistoryNavigation
    • keepalive

      public boolean keepalive
    • method

      public String method
    • mode

      public String mode
    • redirect

      public String redirect
    • referrer

      public String referrer
    • type

      public String type
    • url

      public String url
  • Constructor Details

  • Method Details

    • arrayBuffer

      public elemental2.promise.Promise<elemental2.core.ArrayBuffer> arrayBuffer()
      Specified by:
      arrayBuffer in interface Body
    • blob

      public elemental2.promise.Promise<Blob> blob()
      Specified by:
      blob in interface Body
    • clone_

      @JsMethod(name="clone") public Request clone_()
    • formData

      public elemental2.promise.Promise<FormData> formData()
      Specified by:
      formData in interface Body
    • isBodyUsed

      @JsProperty public boolean isBodyUsed()
      Specified by:
      isBodyUsed in interface Body
    • json

      public elemental2.promise.Promise<Object> json()
      Specified by:
      json in interface Body
    • setBodyUsed

      @JsProperty public void setBodyUsed(boolean bodyUsed)
      Specified by:
      setBodyUsed in interface Body
    • text

      public elemental2.promise.Promise<String> text()
      Specified by:
      text in interface Body