Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultRequestReadTimeout = 9 * time.Second
DefaultRequestReadTimeout for http server
View Source
const Type = "httptrigger"
Type name for http trigger
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct { *operators.BaseOperator // Config cors for http endpoints CORS struct { AllowedMethods []string AllowedHeaders []string AllowedOrigins []string ExposedHeaders []string MaxAge int AllowCredentials bool } // contains filtered or unexported fields }
Operator creates http based http trigger automatically for every funcs
type RequestContext ¶ added in v0.2.1
type RequestContext struct { DomainName string `json:"domainName"` HTTP RequestContextHTTP `json:"http"` RequestID string `json:"requestId"` }
type RequestContextHTTP ¶ added in v0.2.1
type RequestPayload ¶ added in v0.2.1
type RequestPayload struct { Version string `json:"version"` RawPath string `json:"rawPath"` RawQueryString string `json:"rawQueryString"` Cookies []string `json:"cookies"` Headers map[string]string `json:"headers"` QueryStringParameters map[string]string `json:"queryStringParameters"` PathParameters map[string]string `json:"pathParameters"` IsBase64Encoded bool `json:"isBase64Encoded"` Body string `json:"body"` Context RequestContext `json:"requestContext"` }
Click to show internal directories.
Click to hide internal directories.