Skip to content

Step2 #45

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

Closed
wants to merge 5 commits into from
Closed

Step2 #45

wants to merge 5 commits into from

Conversation

SeEunKim
Copy link

@SeEunKim SeEunKim commented Mar 4, 2019

No description provided.

Copy link
Contributor

@javajigi javajigi left a comment

Choose a reason for hiding this comment

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

리팩토링 잘 했네요. 💯
소소한 피드백 몇 개 남겼어요.

RequestMapping requestMapping = new RequestMapping();
AbstractController controller = requestMapping.getController(request.getPath());

if (request.getMethod() == HttpMethod.GET) {
Copy link
Contributor

Choose a reason for hiding this comment

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

request.isGet()으로 구현할 수 있지 않을까?

controller.doGet(request, response);
}

if (request.getMethod() == HttpMethod.POST) {
Copy link
Contributor

Choose a reason for hiding this comment

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

request.isPost()으로 구현할 수 있지 않을까?

private boolean login = false;
private Map<String, String> httpRequest = new HashMap<>();

public HttpRequest(InputStream in) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

이 메소드가 너무 많은 일을 하고 있는 것 아닌가요?
메소드가 한 가지 일만 하도록 리팩토링 해보세요.

@godrm godrm closed this Feb 19, 2020
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.

3 participants