Interface Request

    • Method Detail

      • getMethod

        @NotNull
        @NotNull Request.Method getMethod()
        Returns the method type of the request.
        Returns:
        method type
      • getBody

        @Nullable
        String getBody()
        Returns the request body of the request or null if none specified.
        Returns:
        request body
      • getUrl

        @NotNull
        @NotNull String getUrl()
        Returns the url of the request.
        Returns:
        url
      • getHeaders

        @NotNull
        @NotNull Map<String,​String> getHeaders()
        Returns the headers set for the request.
        Returns:
        a map of the headers set
      • getProxy

        @Nullable
        org.apache.http.HttpHost getProxy()
        Returns the proxy set to be used for the request or default to fetcher if none specified.
        Returns:
        proxy
      • getSleepScheduler

        @Nullable
        SleepScheduler getSleepScheduler()
        Returns information about the amount of sleep before this request is made.
        Returns:
        an instance of SleepScheduler