DELETE: This method will process a HTTP DELETE request, which specifies a resource that should be deleted.PUT: This method will process a HTTP PUT request, where we provide some data and ask the server to store it under a specific URL.POST: A method that’s annotated with is responsible for processing a HTTP POST request, where you send data to a server.This is the annotation we’ll be using to retrieve the list of names. GET: A method that’s annotated with is responsible for processing a HTTP GET request, where data is retrieved from a server. Retrofit supports the following built-in annotations for each of the standard request types:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |