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

Method GetHeader

context/context.go:1169–1171  ·  view source on GitHub ↗

GetHeader returns the request header's value based on its name.

(name string)

Source from the content-addressed store, hash-verified

1167
1168// GetHeader returns the request header's value based on its name.
1169func (ctx *Context) GetHeader(name string) string {
1170 return ctx.request.Header.Get(name)
1171}
1172
1173// IsAjax returns true if this request is an 'ajax request'( XMLHttpRequest)
1174//

Callers 15

HostMethod · 0.95
RemoteAddrMethod · 0.95
IsAjaxMethod · 0.95
IsMobileMethod · 0.95
IsScriptMethod · 0.95
IsSSLMethod · 0.95
GetReferrerMethod · 0.95
GetContentLengthMethod · 0.95
ReadMultipartRelatedMethod · 0.95
CheckIfModifiedSinceMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected