httpbis 0.9.1

Rust implementation of HTTP/2 protocol
Documentation
1
2
3
4
5
6
7
8
9
10
use bytes::Bytes;

use crate::HeaderValue;

/// String `"GET"`.
pub const METHOD_GET: HeaderValue =
    unsafe { HeaderValue::from_bytes_unchecked(Bytes::from_static(b"GET")) };
/// String `"POST"`.
pub const METHOD_POST: HeaderValue =
    unsafe { HeaderValue::from_bytes_unchecked(Bytes::from_static(b"POST")) };