How to add Body in Url in Volley request in Kotlin?
问题 Here is my Code that for Volley Request:- val searchRequest = object : JsonArrayRequest(Request.Method.GET,url, Response.Listener { response -> val result = response.toString() }, Response.ErrorListener { error -> Toast.makeText(activity, "Error!",Toast.LENGTH_LONG) .show() Log.d("ERROR",error.toString()) }) { override fun getBody(): ByteArray { // TODO add Body, Header section works ////////// return super.getBody() } override fun getBodyContentType(): String { return "application/json" }