We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d7508 commit 70ff137Copy full SHA for 70ff137
frameworks/Rust/hyperlane/src/constant.rs
@@ -7,3 +7,4 @@ pub static DATABASE_PORT: usize = 5432;
7
pub static DATABASE_NAME: &str = "hello_world";
8
pub static TABLE_NAME: &str = "World";
9
pub static ROW_LIMIT: i32 = 500;
10
+pub static HYPERLANE: &str = "hyperlane";
frameworks/Rust/hyperlane/src/request_middleware.rs
@@ -6,6 +6,8 @@ pub async fn request(controller_data: ControllerData) {
6
.await
.set_request_header(CONTENT_TYPE, APPLICATION_JSON)
+ .set_response_header(SERVER, HYPERLANE)
+ .await
11
.set_response_status_code(200)
12
.await;
13
}
0 commit comments