package com.parse;

import com.parse.http.ParseHttpBody;
import p447.AbstractC6930;
import p447.C6914;
import p447.C6921;
import p461.InterfaceC7106;

/* JADX INFO: loaded from: classes.dex */
public class ParseHttpClient {
    public boolean hasExecuted;
    public C6921 okHttpClient;

    public static class ParseOkHttpRequestBody extends AbstractC6930 {
        public ParseHttpBody parseBody;

        public ParseOkHttpRequestBody(ParseHttpBody parseHttpBody) {
            this.parseBody = parseHttpBody;
        }

        @Override // p447.AbstractC6930
        public long contentLength() {
            return this.parseBody.contentLength;
        }

        @Override // p447.AbstractC6930
        public C6914 contentType() {
            String str = this.parseBody.contentType;
            if (str == null) {
                return null;
            }
            return C6914.f20034.m10106(str);
        }

        @Override // p447.AbstractC6930
        public void writeTo(InterfaceC7106 interfaceC7106) {
            this.parseBody.writeTo(interfaceC7106.mo10439());
        }
    }

    public ParseHttpClient(C6921.C6922 c6922) {
        this.okHttpClient = new C6921(c6922 == null ? new C6921.C6922() : c6922);
    }
}
