Rabbit-R1/switch port/java/sources/io/sentry/RequestDetails.java

33 lines
872 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
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);
}
}
}