[][src]Struct netlify_lambda_http::request::Http

pub struct Http {
    pub method: Method,
    pub path: String,
    pub protocol: String,
    pub source_ip: String,
    pub user_agent: String,
}

Http information captured API Gateway v2 request context

Fields

method: Method

The HTTP method used. Valid values include: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

path: String

The request path. For example, for a non-proxy request URL of https://{rest-api-id.execute-api.{region}.amazonaws.com/{stage}/root/child, the $context.path value is /{stage}/root/child.

protocol: String

The request protocol, for example, HTTP/1.1.

source_ip: String

The source IP address of the TCP connection making the request to API Gateway.

user_agent: String

The User-Agent header of the API caller.

Trait Implementations

impl Clone for Http[src]

impl Debug for Http[src]

impl Default for Http[src]

impl<'de> Deserialize<'de> for Http[src]

Auto Trait Implementations

impl RefUnwindSafe for Http

impl Send for Http

impl Sync for Http

impl Unpin for Http

impl UnwindSafe for Http

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]