更新时间:2023-11-26 11:42:22
您可以使用 RequestBuilder
来做到这一点——只需请求图像 URL,使用 Response
's getHeaders()
方法获取内容类型,并检查它是否是图像.
You could do this with a RequestBuilder
-- just request the image URL, use the Response
's getHeaders()
method to get the content type, and check if it's an image.