MCPcopy Create free account
hub / github.com/kataras/iris / GetID

Method GetID

context/context.go:6643–6645  ·  view source on GitHub ↗

GetID returns the Request Context's ID. It returns nil if not given by a prior `SetID` call. See `middleware/requestid` too.

()

Source from the content-addressed store, hash-verified

6641// It returns nil if not given by a prior `SetID` call.
6642// See `middleware/requestid` too.
6643func (ctx *Context) GetID() interface{} {
6644 return ctx.values.Get(idContextKey)
6645}
6646
6647// String returns the string representation of this request.
6648//

Callers 1

StringMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected