Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

yuna569
Copy link

@yuna569 yuna569 commented Oct 4, 2024

쿠키 확인, 테스트 코드 작성 미완성입니다..! 추가 진행하겠습니다.

@yuna569 yuna569 changed the title 3주차 미션 / 2조 정윤아 3주차 미션 / 서버 2조 정윤아 Oct 4, 2024
Copy link

@twkwon0417 twkwon0417 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생 하셨습니다.
리팩토링 하시고 정답 코드 보고 비교해 보시면 좋을 거 같습니다. 👍

Comment on lines +6 to +10
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"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File객체 자체를 을 enum으로 관리하셨군요 👍 👍 👍

Comment on lines +6 to +7
HttpRequest httpRequest;
HttpResponse httpResponse;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Controller의 request, response를 member 변수로 선언하신 이유가 있나요?

Comment on lines +13 to +18
private String startLine;
private String method;
private String url;
private String version;
private String header;
private String body;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

바뀌지 않아야 하는 항목들이니까 final keyword를 붙이면 좋을 것 같습니다.

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 객체들을 구성하고, 각자 관리하면 좋을 거 같아요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants