Why does BASEURL end with a slash?
- Retrofit requires the base URL to end with /
- To enable caching
- JSONPlaceholder needs it for HTTPS
- It makes requests faster
Answer
A) Retrofit requires the base URL to end with /
Retrofit throws an exception if baseUrl does not end with /.
Computer Science MCQ · More Lab: Displaying Data from an API MCQs · Practise