pub struct EggfetchResponse { /* private fields */ }Expand description
HTTP response from eggfetch.
Implementations§
Source§impl EggfetchResponse
impl EggfetchResponse
pub fn into_reference( val: EggfetchResponse, env: Env, ) -> Result<Reference<EggfetchResponse>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<EggfetchResponse>>
Source§impl EggfetchResponse
impl EggfetchResponse
Sourcepub fn headers(&self) -> HashMap<String, String>
pub fn headers(&self) -> HashMap<String, String>
Response headers as an object.
When a header appears multiple times, the object joins the values
with ", " (standard HTTP combining). Use Self::get_all to
retrieve every value individually.
Trait Implementations§
Source§impl FromNapiMutRef for EggfetchResponse
impl FromNapiMutRef for EggfetchResponse
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for EggfetchResponse
impl FromNapiRef for EggfetchResponse
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &EggfetchResponse
impl FromNapiValue for &EggfetchResponse
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl FromNapiValue for &mut EggfetchResponse
impl FromNapiValue for &mut EggfetchResponse
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ObjectFinalize for EggfetchResponse
impl ObjectFinalize for EggfetchResponse
Source§impl ToNapiValue for EggfetchResponse
impl ToNapiValue for EggfetchResponse
Source§unsafe fn to_napi_value(
env: napi_env,
val: EggfetchResponse,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: EggfetchResponse, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for EggfetchResponse
impl TypeName for EggfetchResponse
Source§impl TypeName for &EggfetchResponse
impl TypeName for &EggfetchResponse
Source§impl TypeName for &mut EggfetchResponse
impl TypeName for &mut EggfetchResponse
Source§impl ValidateNapiValue for &EggfetchResponse
impl ValidateNapiValue for &EggfetchResponse
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut EggfetchResponse
impl ValidateNapiValue for &mut EggfetchResponse
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for EggfetchResponse
impl RefUnwindSafe for EggfetchResponse
impl Send for EggfetchResponse
impl Sync for EggfetchResponse
impl Unpin for EggfetchResponse
impl UnsafeUnpin for EggfetchResponse
impl UnwindSafe for EggfetchResponse
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