func (r *Response) AssertHeader(key string) string {
	restore := r.assert.IncrCallstackOffset()
	defer restore()
	r.assert.NotEmpty(r.Header, "response contains no header")
	value, ok := r.Header[key]
	r.assert.True(ok, "header '"+key+"' not found")
	return value
}
// AssertHeader checks if a header exists and retrieves it.
AssertHeader checks if a header exists and retrieves it.
// AssertHeader checks if a header exists and retrieves it .
func (r *Response) AssertHeader(key string) string {
	restore := r.assert.IncrCallstackOffset()
	defer restore()
	r.assert.NotEmpty(r.Header, "response contains no header")
	value, ok := r.Header[key]
	r.assert.True(ok, "header '"+key+"' not found")
	return value
}
func ( r * Response ) AssertHeader ( key string ) string { restore := r . assert . IncrCallstackOffset ( ) defer restore ( ) r . assert . NotEmpty ( r . Header , " " ) value , ok := r . Header [ key ] r . assert . True ( ok , " " + key + " " ) return value }
AssertHeader checks if a header exists and retrieves it.
AssertHeader checks if a header exists and retrieves it .