Class NetworkRequest

    • Constructor Detail

      • NetworkRequest

        NetworkRequest(String url, HttpMethod method, Array<byte> body, Map<String, String> headers, int connectTimeout, int readTimeout)
        Constructor for NetworkRequest
        Parameters:
        url - String containing the full url for connection
        method - com.adobe.marketing.mobile.services.HttpMethod, for example "POST", "GET" etc.
        body - byte[] array specifying payload to send to the server
        headers - Map<String, String> containing any additional key value pairs to be used while requesting a connection to the url depending on the method used
        connectTimeout - int indicating connect timeout value in seconds
        readTimeout - int indicating the timeout, in seconds, that will be used to wait for a read to finish after a successful connect