Spring MVC Tutorials 44 - Web Services 14 (HTTP Response Headers and ResponseEntity for a REST API)

preview_player
Показать описание
in this tutorial, we will learn about the concept of HTTP Response Headers as well as how to send them in a Response to a client with the help of ResponseEntity ReturnType within a REST API controller method.
Рекомендации по теме
Комментарии
Автор

I really appreciate all the hard work you’ve done to help me. I have learnt so much from this tutorials, I couldn’t have done it without you and it’s all thanks to you

phanindraedupuganti
Автор

Thanks a lot sir. You are the best of all online tutors. We are so much grateful for your help.

bharat
Автор

Sir really you put the awesome explanation of the Whole SERIES OF REST API.You have very great voice and the way of explanation is really great.Picturization of the content that's also great that matches to your words. overall great experiences you have.I request you to please make some tutorials on spring security .Thank you so much .

DINESHKUMARWithSpringBoot
Автор

in the next tutorial, we will learn how to develop a REST API which demands POST kind of request to be made on it. Happy Learning...

gontuseries
Автор

That will be great ..Wanted to know all the scenarios which is applicable for Restful services ..keep it up buddy ..

nirbikardas
Автор

Thanks for the tutorial. It will be very helpful if you please post video tutorial on Spring web security.

palakthakur
Автор

your voice makes me sleep which I like

neilbertmillar
Автор

Hi I have added some response headers in in my response entity, while testing when i run the same request multiple times, response headers are getting duplicated. Could you suggest something here .. ??

jaideeph
Автор

hello please start tutorial on restful web services security

sagarlimbu
Автор

My Understanding
BY using HttpHeaders class instance we can send the customized headers to the client
HttpHeader httpHeader = new HttpHeader()
httpHeader.add("Key1", "Values 1")
httpHeader.add("Key2", "Values 2")
And finally set this to ResponseEntity<Boolean>(true, httpHeader, HttpStatus.OK)

sureshrayudu
welcome to shbcf.ru