pub struct HttpBackendPlan {
pub repository: PathBuf,
pub service: HttpBackendService,
pub operation: HttpBackendOperation,
pub head_only: bool,
}Expand description
A validated native smart-HTTP operation.
Fields§
§repository: PathBufRepository path passed to the owning engine command.
service: HttpBackendServiceSelected smart service.
operation: HttpBackendOperationAdvertisement or RPC execution.
head_only: boolWhether a CGI HEAD request must suppress the response body.
Implementations§
Source§impl HttpBackendPlan
impl HttpBackendPlan
Sourcepub fn response_content_type(&self) -> String
pub fn response_content_type(&self) -> String
Response media type for this plan.
Sourcepub fn request_content_type(&self) -> Option<String>
pub fn request_content_type(&self) -> Option<String>
Required request media type for an RPC POST.
Trait Implementations§
Source§impl Clone for HttpBackendPlan
impl Clone for HttpBackendPlan
Source§fn clone(&self) -> HttpBackendPlan
fn clone(&self) -> HttpBackendPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpBackendPlan
impl Debug for HttpBackendPlan
impl Eq for HttpBackendPlan
Source§impl PartialEq for HttpBackendPlan
impl PartialEq for HttpBackendPlan
impl StructuralPartialEq for HttpBackendPlan
Auto Trait Implementations§
impl Freeze for HttpBackendPlan
impl RefUnwindSafe for HttpBackendPlan
impl Send for HttpBackendPlan
impl Sync for HttpBackendPlan
impl Unpin for HttpBackendPlan
impl UnsafeUnpin for HttpBackendPlan
impl UnwindSafe for HttpBackendPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more