headerLocationParser parsers Location header from response
(resp *navigation.Response)
| 143 | |
| 144 | // headerLocationParser parsers Location header from response |
| 145 | func headerLocationParser(resp *navigation.Response) (navigationRequests []*navigation.Request) { |
| 146 | header := resp.Resp.Header.Get("Location") |
| 147 | if header == "" { |
| 148 | return |
| 149 | } |
| 150 | navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(header, resp.Resp.Request.URL.String(), "header", "location", resp)) |
| 151 | return |
| 152 | } |
| 153 | |
| 154 | // headerRefreshParser parsers Refresh header from response |
| 155 | func headerRefreshParser(resp *navigation.Response) (navigationRequests []*navigation.Request) { |