Skip to content

Commit adcd0e3

Browse files
committed
http: allow importing of http::StatusCode; required for use with send_response
1 parent 745f3de commit adcd0e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/http/server.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use crate::{
33
get_blob, Address, LazyLoadBlob as KiBlob, Message, Request as KiRequest,
44
Response as KiResponse,
55
};
6-
use http::{HeaderMap, HeaderName, HeaderValue, StatusCode};
6+
pub use http::StatusCode;
7+
use http::{HeaderMap, HeaderName, HeaderValue};
78
use serde::{Deserialize, Serialize};
89
use std::collections::{HashMap, HashSet};
910
use thiserror::Error;

0 commit comments

Comments
 (0)