Trait graph_core::http::HttpResponseBuilderExt

source ·
pub trait HttpResponseBuilderExt {
    // Required methods
    fn url(self, url: Url) -> Self;
    fn json(self, value: &Value) -> Self;
}
Expand description

Extension trait for http::response::Builder objects

Allows the user to add a Url to the http::Response

Required Methods§

source

fn url(self, url: Url) -> Self

A builder method for the http::response::Builder type that allows the user to add a Url to the http::Response

source

fn json(self, value: &Value) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HttpResponseBuilderExt for Builder

source§

fn url(self, url: Url) -> Self

source§

fn json(self, value: &Value) -> Self

Implementors§