get_header() 공개 메소드

public get_header ( string header_name ) : string
header_name string
리턴 string
예제 #1
0
 // This function is called when user types in his browser http://127.0.0.1:8080/foo
 static private void UriHandler(MongooseConnection conn, MongooseRequestInfo ri)
 {
     conn.write("HTTP/1.1 200 OK\r\n\r\n");
     conn.write("Hello from C#!\n");
     conn.write("Your user-agent is: " + conn.get_header("User-Agent") + "\n");
 }
예제 #2
0
파일: example.cs 프로젝트: GotenXiao/blink1
	// This function is called when user types in his browser http://127.0.0.1:8080/foo
	static private void UriHandler(MongooseConnection conn, MongooseRequestInfo ri) {
		conn.write("HTTP/1.1 200 OK\r\n\r\n");
		conn.write("Hello from C#!\n");
		conn.write("Your user-agent is: " + conn.get_header("User-Agent") + "\n");
	}