-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3주차 미션 / 서버 2조 정윤아 #12
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생 하셨습니다.
리팩토링 하시고 정답 코드 보고 비교해 보시면 좋을 거 같습니다. 👍
INDEX_HTML(Path.of("webapp/index.html")), | ||
FORM_HTML(Path.of("webapp/user/form.html")), | ||
LOGIN_HTML(Path.of("webapp/user/login.html")), | ||
LOGIN_FAILED_HTML(Path.of("webapp/user/login_failed.html")), | ||
STYLES_CSS(Path.of("css/styles.css")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File객체 자체를 을 enum으로 관리하셨군요 👍 👍 👍
HttpRequest httpRequest; | ||
HttpResponse httpResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Controller의 request, response를 member 변수로 선언하신 이유가 있나요?
private String startLine; | ||
private String method; | ||
private String url; | ||
private String version; | ||
private String header; | ||
private String body; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
바뀌지 않아야 하는 항목들이니까 final keyword를 붙이면 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpRequest가 너무 많은 책임을 가지고 있는거 같습니다.
HttpRequest의 멤버 변수로 startline, body, header 객체들을 구성하고, 각자 관리하면 좋을 거 같아요
쿠키 확인, 테스트 코드 작성 미완성입니다..! 추가 진행하겠습니다.