Make a Simple HTTP Server in Java - Java Tutorial - Part 7: Http Method and Test Cases

preview_player
Показать описание
On the seventh part we will be parsing the HTTP MEthod from the request Line and writing test cases for some of the errors we might find.

LINKS:

Java Tutorial showing you how to create a Simple HTTP Server from scratch in Java.

Have you ever wondered how an HTTP Server works or though about making one but didn't know where to start? Look no further! In this tutorial series we'll be going through the motions and making one from scratch.

We'll be using:
Рекомендации по теме
Комментарии
Автор

Thanks a lot, great series. Will have a look at your other videos as well! Looking forward to part 8!

albertandersson
Автор

Thanks for these videos, they really helped with College Projects. I hope there's going to be a part 8, I've been relying a lot on your videos.

hardikkapadia
Автор

Eagerly awaiting the next part. This series has helped me learn a lot. I am hoping the following tutorials will be released soon. Especially waiting to understand the "Response" part. How are files searched and what goes into making one complete request-response cycle? I am also curious about how you planned the architecture for creating an HTTP server...There are a lot of pieces to consider when implementing a protocol, where would one begin and how to decide the course of development?
I apologize for so many questions and if they are not clear.

nidhishah
Автор

Hey, your videos have been crucial to me. But still waiting for the next parts to finish the segment. Will you not be uploading it any time soon? Really helping with understand my school material

siamshahrioralamtonmoy
Автор

Waiting for the next part. Thank you man

fridric
Автор

Also waiting for the next part. Great tutorial

Nazubal
Автор

Thanks, this tutorial cool! Waiting next video!

ВладимирБонд-хп
Автор

It's amazing tutorial. Good job.
I want to study more of the rest, when are you going to start this series again? Or Is there more material for this tutorial?

yunhapark
Автор

Great video series! Just as a sanity check for myself; could it be that you have the 'expected' and the 'actual' argements for the assertEquals method in the test cases mixed up?
Edit1: Also, for the last test case, shouldn't a new HttpParsingException be thrown when there is a CR byte, but no LF byte? The test case works because at some other point another CLIENT_ERROR_400_BAD_REQUEST is thrown if I'm not mistaken.
Edit2: Nevermind, I just found out this is addressed in the beginning of part 8 :)

rickw
Автор

this is the type of spaghetti code that is torture to the self who's reading it 6 months down the line. thanks to doing dozens of sliding window problems on strings, im used to this mess >:)

“Ah you think darkness is your ally? You merely adopted the dark. I was born in it, molded by it. I didn't see the light until I was already a man, by then it was nothing to me but blinding!”
― Bane

pankaj-kalra
Автор

It's been a lot of help, thank you so much

물망초-gr
Автор

When the next part? This series helped me a lot

alfonsosorrentino
Автор

Are u have plan to release next part ?. Can't wait :3. Thank for your vid

caonguyenle
Автор

Something strange is happening when I create the testcases: Eventhough the test result is "NOT IMPLEMENTED", both bad tests scenarios fails. :/

guilhermeguerra
Автор

really handy tutorial man
thanks a lot

mamad_reza
Автор

I am curious about the next part, however, I am curious why the output of logger for Required target is "/" and not "HTTP"?
Is the required target is not HTTP? Meaning the version is in fact made of "HTTP/1.1".
Or is this a parsing issue meant to be fixed in a future tutorial? Meaning the required target is actually "HTTP" and the version is "1.1"?

Overall great series of tutorials! Very well thought out and executed.

pietheniceguy
Автор

greetings!

how can I do something like:

java -jar myHttpServer.jar STOP //close the server socket started before

I know how started it, but I do not know how close it after.

Thanks in advance

aguilucho
Автор

Will be possible to open it in the browser?

lucasaraujo.
visit shbcf.ru