Skip to content

Commit

Permalink
Merge pull request #76 from kana-rus/update_documents
Browse files Browse the repository at this point in the history
Update documents
  • Loading branch information
kanarus authored Feb 6, 2024
2 parents 1782400 + a6c04f3 commit 309374e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
ohkami <em>- [狼] wolf in Japanese -</em> is <strong>declarative</strong> web framework for Rust.
</div>

<br>

- *macro less, declarative APIs*
- *multi runtime* support:`tokio`, `async-std`

Expand Down
5 changes: 5 additions & 0 deletions ohkami/src/layer1_req_res/request/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ pub(crate) const PAYLOAD_LIMIT: usize = 1 << 32;
/// ```
pub struct Request {pub(crate) _metadata: [u8; METADATA_SIZE],
method: Method,
/// Headers of this request
///
/// - `.headers.{HeaderName}()` to get the value
/// - `.headers.set().{HeaderName}(〜)` to mutate the value
/// - `.headers.set().{HeaderName}(append(〜))` to append the value
pub headers: RequestHeaders,
pub(crate) path: Path,
queries: QueryParams,
Expand Down
5 changes: 5 additions & 0 deletions ohkami/src/layer1_req_res/response/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ use crate::__rt__::AsyncWriter;
/// ```
pub struct Response {
pub status: Status,
/// Headers of this response
///
/// - `.headers.{HeaderName}()` to get the value
/// - `.headers.set().{HeaderName}(〜)` to set the value
/// - `.headers.set().{HeaderName}(append(〜))` to append the value
pub headers: ResponseHeaders,
pub(crate) content: Option<Cow<'static, [u8]>>,
} const _: () = {
Expand Down

0 comments on commit 309374e

Please sign in to comment.