Skip to content

Commit 70ff137

Browse files
committed
feat: server header
1 parent 68d7508 commit 70ff137

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

frameworks/Rust/hyperlane/src/constant.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pub static DATABASE_PORT: usize = 5432;
77
pub static DATABASE_NAME: &str = "hello_world";
88
pub static TABLE_NAME: &str = "World";
99
pub static ROW_LIMIT: i32 = 500;
10+
pub static HYPERLANE: &str = "hyperlane";

frameworks/Rust/hyperlane/src/request_middleware.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ pub async fn request(controller_data: ControllerData) {
66
.await
77
.set_request_header(CONTENT_TYPE, APPLICATION_JSON)
88
.await
9+
.set_response_header(SERVER, HYPERLANE)
10+
.await
911
.set_response_status_code(200)
1012
.await;
1113
}

0 commit comments

Comments
 (0)