FT-369/Webserv

conf 파일 파싱 후 Config 객체에 저장

Closed this issue · 0 comments

Description

conf 파일을 파싱하고 config 정보를 알맞은 곳에 저장합니다.
conf 파일은 크게 main_directive, event_directive, http_directive로 나뉩니다. http_directive는 여러개의 server_directive 를, server_directive는 여러개의 location_directive를 포함하고 있습니다.

To Do

  • location 블록들의 정보를 저장할 수 있는 ConfigLocation 클래스를 작성합니다.
  • server 블록들의 정보를 저장할 ConfigSever 클래스를 작성합니다. location_directive를 멤버변수로 가집니다.
    • location_directive 의 자료형은 vector<ConfigLocation>
  • http 블록의 정보를 담아둘 ConfigHttp 클래스를 작성합니다. simple_directive 를 멤버변수로 가집니다.
    • location_directive 의 자료형은 vector<ConfigSever>
  • main_directive, event_directive, http_directive 를 멤버변수로 가지는 Config 클래스를 작성합니다.
    • main_directive, event_directive은 map으로, http_directiveConfigHttp 으로 구현합니다.