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

[톰캣] - 1,2 단계 박스터 미션 제출합니다 #303

Merged
merged 11 commits into from
Sep 4, 2023

Conversation

drunkenhw
Copy link
Member

@drunkenhw drunkenhw commented Sep 2, 2023

케로 안녕하세요

  1. http11processor에 요청으로 들어온 inputStream을 httprequest로 파싱한다
  2. request reader가 http request 로 response entity를 반환한다
  3. response entity를 응답으로 outputStream에 write한다

이상입니다. 설명이 짧다면 디엠 주세요

@drunkenhw drunkenhw self-assigned this Sep 2, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link

@jyeost jyeost left a comment

Choose a reason for hiding this comment

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

전체적으로 클래스 분리가 굉장히 깔끔하게 되어있고 테스트도 잘 되어있어서 읽기 좋았습니다 !!!!
많이 배워갑니다... 최고입니다👍

RequestReader 쪽의 분기가 많긴 했지만 3단계 적용시키면 깔끔해 질 것 같아서 기대됩니다 ◡̈
이 부분 리팩 진행하면서 api 테스트 좀 더 추가되면 갓갓갓갓벽 할 것 같습니다 짱입니다 !!!!


import java.util.Arrays;

public enum ContentType {
Copy link

Choose a reason for hiding this comment

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

enum 분리 잘되어있어서 읽기 편했습니다 !!!!
너무 좋습니다 !!

while (isNotEmpty(line)) {
String[] splitedLine = line.split(":", 2);

String key = splitedLine[KEY_INDEX].toLowerCase();
Copy link

Choose a reason for hiding this comment

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

request header부분만 lowerCase로 변경해주던데
이유가 궁금합니더 !

String line = bufferedReader.readLine();

while (isNotEmpty(line)) {
String[] splitedLine = line.split(":", 2);
Copy link

Choose a reason for hiding this comment

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

👍

import org.apache.coyote.http11.common.HttpMethod;
import org.apache.coyote.http11.common.HttpVersion;

public class RequestLine {
Copy link

Choose a reason for hiding this comment

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

이부분 클래스 명이 조금 모호한것 같아서
RequestStartLine 으로 변경 제안 드립니당@!

responseHeaders.addCookie(cookie);
}

@Override
Copy link

Choose a reason for hiding this comment

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

넘 깔끔하고 좋습니다 ...
배워갑니다 !!!!!!!!

@jyeost jyeost merged commit 6181964 into woowacourse:drunkenhw Sep 4, 2023
2 checks passed
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