// 
// Decompiled by Procyon v0.6.0
// 

package io.sentry;

import java.net.MalformedURLException;
import java.net.URI;
import io.sentry.util.Objects;
import java.util.Map;
import org.jetbrains.annotations.NotNull;
import java.net.URL;

public final class RequestDetails
{
    @NotNull
    private final URL url;
    @NotNull
    private final Map<String, String> headers;
    
    public RequestDetails(@NotNull final String url, @NotNull final Map<String, String> headers) {
        Objects.requireNonNull(url, "url is required");
        Objects.requireNonNull(headers, "headers is required");
        try {
            this.url = URI.create(url).toURL();
        }
        catch (final MalformedURLException e) {
            throw new IllegalArgumentException("Failed to compose the Sentry's server URL.", e);
        }
        this.headers = headers;
    }
    
    @NotNull
    public URL getUrl() {
        return this.url;
    }
    
    @NotNull
    public Map<String, String> getHeaders() {
        return this.headers;
    }
}
