Trait twitch_api2::helix::RequestPost [−][src]
This is supported on crate feature
helix
only.Helix endpoint POSTs information
Associated Types
Loading content...Provided methods
fn body(&self, body: &Self::Body) -> Result<String, BodyError>
[src]
Create body text from RequestPost::Body
fn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str
) -> Result<Request<Vec<u8>>, CreateRequestError>
[src]
&self,
body: Self::Body,
token: &str,
client_id: &str
) -> Result<Request<Vec<u8>>, CreateRequestError>
Create a http::Request
from this Request
in your client
fn parse_response(
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPostError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPostError> where
Self: Sized,
Parse response. Override for different behavior
Implementors
impl RequestPost for StartCommercialRequest
[src]
type Body = StartCommercialBody
impl RequestPost for CheckAutoModStatusRequest
[src]
type Body = Vec<CheckAutoModStatusBody>
fn body(&self, body: &Self::Body) -> Result<String, BodyError>
[src]
impl RequestPost for CreateUserFollowsRequest
[src]
type Body = CreateUserFollowsBody
fn parse_response(
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPostError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPostError> where
Self: Sized,
impl<E: EventSubscription> RequestPost for CreateEventSubSubscriptionRequest<E>
[src]
This is supported on crate feature
eventsub
only.type Body = CreateEventSubSubscriptionBody<E>
fn body(&self, body: &Self::Body) -> Result<String, BodyError>
[src]
fn parse_response(
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPostError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPostError> where
Self: Sized,