Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.
Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.
(->http-retry-exception detail code)
(->http-retry-exception detail code location)
Constructor.
Constructs a new HttpRetryException with detail message responseCode and the contents of the Location response header field.
detail - the detail message. - java.lang.String
code - the HTTP response code from server. - int
location - the URL to be redirected to - java.lang.String
Constructor. Constructs a new HttpRetryException with detail message responseCode and the contents of the Location response header field. detail - the detail message. - `java.lang.String` code - the HTTP response code from server. - `int` location - the URL to be redirected to - `java.lang.String`
(get-location this)
Returns the value of the Location header field if the error resulted from redirection.
returns: The location string - java.lang.String
Returns the value of the Location header field if the error resulted from redirection. returns: The location string - `java.lang.String`
(get-reason this)
Returns a string explaining why the http request could not be retried.
returns: The reason string - java.lang.String
Returns a string explaining why the http request could not be retried. returns: The reason string - `java.lang.String`
(response-code this)
Returns the http response code
returns: The http response code. - int
Returns the http response code returns: The http response code. - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close