go-sdk icon indicating copy to clipboard operation
go-sdk copied to clipboard

invoke service provide more information like url...

Open congziqi77 opened this issue 3 years ago • 0 comments

when i register handler in go sdk, i want get url and more http information, but InvocationEvent struct only provide Data、ContentType、QueryString、Verb、DataTypeURL。

type InvocationEvent struct {
	// Data is the payload that the input bindings sent.
	Data []byte `json:"data"`
	// ContentType of the Data
	ContentType string `json:"contentType"`
	// DataTypeURL is the resource URL that uniquely identifies the type of the serialized
	DataTypeURL string `json:"typeUrl,omitempty"`
	// Verb is the HTTP verb that was used to invoke this service.
	Verb string `json:"-"`
	// QueryString represents an encoded HTTP url query string in the following format: name=value&name2=value2
	QueryString string `json:"-"`
}

So is there any way I can access this information? thanks

congziqi77 avatar Jan 10 '23 09:01 congziqi77