alexandroid/decompiled/jadx/sources/com/amazonaws/http/HttpRequest.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

65 lines
1.6 KiB
Java

package com.amazonaws.http;
import com.amazonaws.util.StringUtils;
import java.io.InputStream;
import java.net.URI;
import java.util.Collections;
import java.util.Map;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes5.dex */
public class HttpRequest {
private final InputStream content;
private final Map<String, String> headers;
private boolean isStreaming;
private final String method;
private URI uri;
public HttpRequest(String str, URI uri, Map<String, String> map, InputStream inputStream) {
this.method = StringUtils.upperCase(str);
this.uri = uri;
this.headers = map == null ? Collections.EMPTY_MAP : Collections.unmodifiableMap(map);
this.content = inputStream;
}
public InputStream getContent() {
return this.content;
}
public long getContentLength() {
String str;
Map<String, String> map = this.headers;
if (map == null || (str = map.get("Content-Length")) == null || str.isEmpty()) {
return 0L;
}
return Long.valueOf(str).longValue();
}
public Map<String, String> getHeaders() {
return this.headers;
}
public String getMethod() {
return this.method;
}
public URI getUri() {
return this.uri;
}
public boolean isStreaming() {
return this.isStreaming;
}
public void setStreaming(boolean z) {
this.isStreaming = z;
}
public void setUri(URI uri) {
this.uri = uri;
}
public HttpRequest(String str, URI uri) {
this(str, uri, null, null);
}
}