Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 783 Bytes

File metadata and controls

19 lines (16 loc) · 783 Bytes

CMU-HTTP

This repository contains the starter code for CMU 15-441/641 Networking and the Internet Project 3: CMU-HTTP.

1. Files

  • Makefile: Contains rules for make.
  • README.md: Current document.
  • cp1: CP1 scripts and examples but also useful for CP2.
  • backend/: The codes we provide for you.
    • backend/parse_http.c: The HTTP Request / Response parser.
    • backend/responses.c: Predefined HTTP responses.
    • backend/lexer.l: Lex/Yacc related logic.
    • backend/parser.y
  • include/: some header files.
  • src/: You need to develop here.

2. Environment Setup

  1. Generate the binaries: make
  2. Run the server: For example, running ./server ./cp1/test_visual/ will start an HTTP server serving the contents in ./cp1/test_visual/.