forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_response.pxd
More file actions
26 lines (22 loc) · 969 Bytes
/
cef_response.pxd
File metadata and controls
26 lines (22 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
from cef_string cimport CefString
# noinspection PyUnresolvedReferences
from multimap cimport multimap as cpp_multimap
from libcpp cimport bool as cpp_bool
from cef_ptr cimport CefRefPtr
cdef extern from "include/cef_response.h":
ctypedef cpp_multimap[CefString, CefString] CefResponseHeaderMap
cdef CefRefPtr[CefResponse] CefResponse_Create "CefResponse::Create"()
cdef cppclass CefResponse:
cpp_bool IsReadOnly()
int GetStatus()
void SetStatus(int status)
CefString GetStatusText()
void SetStatusText(CefString& statusText)
CefString GetMimeType()
void SetMimeType(CefString& mimeType)
CefString GetHeader(CefString& name)
void GetHeaderMap(CefResponseHeaderMap& headerMap)
void SetHeaderMap(CefResponseHeaderMap& headerMap)