Home
last modified time | relevance | path

Searched refs:content_length (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/user/apps/http_server/
Dmain.c35 void send_header(int sockfd, int content_length, char *path) in send_header() argument
68 …buffer, "HTTP/1.1 200 OK\nContent-Type: %s\nContent-Length: %d\n\n", content_type, content_length); in send_header()
85 int content_length = lseek(fd, 0, SEEK_END); in send_file() local
86 int remaining = content_length; in send_file()
87 printf("send_file: content_length: %d\n", content_length); in send_file()
89 send_header(sockfd, content_length, path); in send_file()