[Solved] constant for HTTP GET, POST, PUT on JDK or android SDK


In com.android.volley.Request class you can find an interface for this purpose:

    public interface Method {
    int DEPRECATED_GET_OR_POST = -1;
    int GET = 0;
    int POST = 1;
    int PUT = 2;
    int DELETE = 3;
    int HEAD = 4;
    int OPTIONS = 5;
    int TRACE = 6;
    int PATCH = 7;
}

Only thing is that to use this you will have to include Volley as a dependency.

solved constant for HTTP GET, POST, PUT on JDK or android SDK