mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
32 lines
872 B
Java
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);
|
|
}
|
|
}
|
|
}
|