Skip to content

웹 애플리케이션 서버 개발 미션을 위한 저장소

Notifications You must be signed in to change notification settings

woowacourse/jwp-was

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Repository files navigation

웹 애플리케이션 서버

1단계 - HTTP 웹 서버 구현

요구사항1

http://localhost:8080/index.html 로 접속했을 때 webapp 디렉토리의 index.html 파일을 읽어 클라이언트에 응답한다.

구현 기능 목록

  • Request Header를 파싱하여 원하는 정보 찾기
    • 모든 Request header 출력하기
    • Request에서 path 분리하기
  • path에 해당하는 파일 읽어 응답하기

요구사항2

“회원가입” 메뉴를 클릭하면 http://localhost:8080/user/form.html 으로 이동하면서 회원가입할 수 있다.

구현 기능 목록

  • Request Parameter 추출
  • 사용자가 입력한 값 저장

요구사항3

http://localhost:8080/user/form.html 파일의 form 태그 method를 get에서 post로 수정한 후 회원가입 기능이 정상적으로 동작하도록 구현한다.

구현 기능 목록

  • form.html 파일의 form 태그 method를 get에서 post로 수정
  • Request Body의 값 추출하기

요구사항4

“회원가입”을 완료하면 /index.html 페이지로 이동하고 싶다. 현재는 URL이 /user/create 로 유지되는 상태로 읽어서 전달할 파일이 없다. 따라서 redirect 방식처럼 회원가입을 완료한 후 “index.html”로 이동해야 한다.즉, 브라우저의 URL이 /index.html로 변경해야 한다.

구현 기능 목록

  • 요청에 따라 다른 HttpResponse를 응답
    • status code를 302로 변경한 후, Location 값에 리다이렉션 할 페이지를 넣어 응답

요구사항5

지금까지 구현한 소스 코드는 stylesheet 파일을 지원하지 못하고 있다. Stylesheet 파일을 지원하도록 구현하도록 한다.

구현 기능 목록

  • 응답에 따라 Content-Type을 변경하여 Stylesheet 파일을 지원하도록 구현

About

웹 애플리케이션 서버 개발 미션을 위한 저장소

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published