Struct jsonrpc_http_server::Response [] [src]

pub struct Response {
    pub code: StatusCode,
    pub content_type: ContentType,
    pub content: String,
}

Simple server response structure

Fields

Response code

Response content type

Response body

Methods

impl Response
[src]

[src]

Create a response with empty body and 200 OK status code.

[src]

Create a response with given body and 200 OK status code.

[src]

Create a response for internal error.

[src]

Create a response for not allowed hosts.

[src]

Create a response for unsupported content type.

[src]

Create a response for disallowed method used.

[src]

CORS invalid

Trait Implementations

impl Debug for Response
[src]

[src]

Formats the value using the given formatter.

impl Into<Response> for Response
[src]

[src]

Performs the conversion.