Esempio n. 1
0
func (r CefResponseT) SetHeaderMap(headers map[string][]string) {
	headerMapPtr := C.cef_string_multimap_alloc()
	copyIntoMultiMap(headerMapPtr, headers)
	defer C.cef_string_multimap_free(headerMapPtr)
	C.cef_response_t_set_header_map(r.CStruct, headerMapPtr)
}
Esempio n. 2
0
func (r CefResponseT) GetHeaderMap() map[string][]string {
	headerMapPtr := C.cef_string_multimap_alloc()
	defer C.cef_string_multimap_free(headerMapPtr)
	C.cef_response_t_get_header_map(r.CStruct, headerMapPtr)
	return extractCefMultiMap(headerMapPtr)
}