Rabbit-R1/original r1/java/sources/io/sentry/RequestDetails.java
2024-05-21 17:08:36 -04:00

32 lines
872 B
Java

package io.sentry;
import io.sentry.util.Objects;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.util.Map;
/* loaded from: classes3.dex */
public final class RequestDetails {
private final Map<String, String> headers;
private final URL url;
public Map<String, String> getHeaders() {
return this.headers;
}
public URL getUrl() {
return this.url;
}
public RequestDetails(String str, Map<String, String> map) {
Objects.requireNonNull(str, "url is required");
Objects.requireNonNull(map, "headers is required");
try {
this.url = URI.create(str).toURL();
this.headers = map;
} catch (MalformedURLException e) {
throw new IllegalArgumentException("Failed to compose the Sentry's server URL.", e);
}
}
}