deltachat/src/com/b44t/messenger/DcHttpResponse.java
link2xt 0e657eed56
Set WebView proxy to 0.0.0.0 when possible (#2539)
* Set WebView proxy to 0.0.0.0 when possible

* add DcHttpResponse to wrapper

* use new DcHttpResponse to show images in email-html-view

* null-encoding is fine for WebResourceResponse()

---------

Co-authored-by: B. Petersen <r10s@b44t.com>
2023-04-20 21:30:19 +02:00

22 lines
638 B
Java

package com.b44t.messenger;
public class DcHttpResponse {
public DcHttpResponse(long httpResponseCPtr) {
this.httpResponseCPtr = httpResponseCPtr;
}
@Override protected void finalize() throws Throwable {
super.finalize();
unrefHttpResponseCPtr();
httpResponseCPtr = 0;
}
public native String getMimetype ();
public native String getEncoding ();
public native byte[] getBlob ();
// working with raw c-data
private long httpResponseCPtr; // CAVE: the name is referenced in the JNI
private native void unrefHttpResponseCPtr();
}