internal/ssr
Types
pub type ClientError {
HttpError(Int)
JsonParseError
NetworkError
}
Constructors
-
HttpError(Int) -
JsonParseError -
NetworkError
pub type SSRRenderResponse {
SSRRenderResponse(head: List(String), body: String)
}
Constructors
-
SSRRenderResponse(head: List(String), body: String)
Values
pub fn client_error_to_string(err: ClientError) -> String
pub fn server_render(
url: String,
body: String,
) -> Result(SSRRenderResponse, ClientError)
Sends a POST request to the Node process to get the SSR content