Q4IRSNH2MHMR3QJIIPILEDIM4A2PLCG57T6KM7TACP4EVS6R4AZQC pub fn (c App) init() {}pub fn (c App) init_once() {}pub fn (c App) parse_form(s string) {}pub fn (c App) send_response_to_client(mimetype string, res string) bool {println('web send: $mimetype $res')return true}pub fn (mut app App) index() Result {return Result{} //app.text('Welcome to VWeb')}
handle_conn<App>(mut conn, mut app)
mut reader := io.new_buffered_reader(reader: io.make_reader(conn))http_first := reader.read_line() or { break }println(http_first)header_lines := read_headerlines(mut reader)headers := http.parse_headers(header_lines)println(headers)
fn read_headerlines(mut reader io.BufferedReader) []string {mut lines := []string{}for {mut line := reader.read_line() or { return lines }l := line.trim('\r\n')if l == '' {break}lines << l}return lines}