Struct eureka_client::EurekaClient [−][src]
pub struct EurekaClient { /* fields omitted */ }
Methods
impl EurekaClient
[src]
impl EurekaClient
pub fn new(config: BaseConfig) -> Self
[src]
pub fn new(config: BaseConfig) -> Self
pub fn start(&self)
[src]
pub fn start(&self)
pub fn make_request<V: Serialize>(
&self,
app: &str,
path: &str,
method: Method,
body: &V,
headers: HeaderMap
) -> Result<Response, EurekaError>
[src]
pub fn make_request<V: Serialize>(
&self,
app: &str,
path: &str,
method: Method,
body: &V,
headers: HeaderMap
) -> Result<Response, EurekaError>
Sends a request to another app in this eureka cluster, and returns the response.
This method assumes that your services all communicate using JSON. Future methods may be added to allow other request body types.
Accept: "application/json"
is preset on all requests by this method.
You can add additional headers such as Authorization
using the headers
parameter.
Trait Implementations
impl Debug for EurekaClient
[src]
impl Debug for EurekaClient
Auto Trait Implementations
impl Send for EurekaClient
impl Send for EurekaClient
impl Sync for EurekaClient
impl Sync for EurekaClient