alexandroid/decompiled/jadx/sources/org/apache/http/protocol/ResponseServer.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

34 lines
1.1 KiB
Java

package org.apache.http.protocol;
import java.io.IOException;
import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.HttpResponseInterceptor;
import org.apache.http.annotation.Contract;
import org.apache.http.annotation.ThreadingBehavior;
import org.apache.http.util.Args;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Contract(threading = ThreadingBehavior.IMMUTABLE)
/* loaded from: classes11.dex */
public class ResponseServer implements HttpResponseInterceptor {
private final String originServer;
public ResponseServer(String str) {
this.originServer = str;
}
@Override // org.apache.http.HttpResponseInterceptor
public void process(HttpResponse httpResponse, HttpContext httpContext) throws HttpException, IOException {
String str;
Args.notNull(httpResponse, "HTTP response");
if (httpResponse.containsHeader("Server") || (str = this.originServer) == null) {
return;
}
httpResponse.addHeader("Server", str);
}
public ResponseServer() {
this(null);
}
}