Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in method  RSS feed

 
gobburi saikrishna
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers

can anyone please explian me setContentType()method with example.


Thanks in advance
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The setContentType() method is used to set the content type of the information being sent to the client. There are several content possible content types, the most common being the text/html.

and you use it like
.


Hope this helps .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!