All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.http.component.jdk.DefaultJdkStatusCodeExtractor Maven / Gradle / Ivy

package top.jfunc.http.component.jdk;

import top.jfunc.http.component.StatusCodeExtractor;
import top.jfunc.http.request.HttpRequest;

import java.io.IOException;
import java.net.HttpURLConnection;

/**
 * @author xiongshiyan at 2020/1/6 , contact me with email [email protected] or phone 15208384257
 */
public class DefaultJdkStatusCodeExtractor implements StatusCodeExtractor {
    @Override
    public Integer extract(HttpURLConnection connection, HttpRequest httpRequest) throws IOException {
        return connection.getResponseCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy