pub struct HttpResponseInfo {
pub status_code: u16,
pub reason_phrase: String,
pub headers: Vec<(String, String)>,
}Expand description
HTTP レスポンス情報
WebSocket ハンドシェイクで 101 以外のレスポンスを受信した場合に、 HTTP procedures を実行するために必要な情報を保持する
Fields§
§status_code: u16HTTP ステータスコード
reason_phrase: StringHTTP reason phrase
headers: Vec<(String, String)>HTTP レスポンスヘッダー
Trait Implementations§
Source§impl Clone for HttpResponseInfo
impl Clone for HttpResponseInfo
Source§fn clone(&self) -> HttpResponseInfo
fn clone(&self) -> HttpResponseInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpResponseInfo
impl RefUnwindSafe for HttpResponseInfo
impl Send for HttpResponseInfo
impl Sync for HttpResponseInfo
impl Unpin for HttpResponseInfo
impl UnsafeUnpin for HttpResponseInfo
impl UnwindSafe for HttpResponseInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more