File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
third-party/thrift/src/thrift/lib/python/server Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -138,3 +138,7 @@ cdef class WriteHeaders(Headers):
138138 cdef _fbthrift_create(RequestContext ctx)
139139
140140cdef object THRIFT_REQUEST_CONTEXT
141+
142+ cdef api Cpp2RequestContext* extract_cpp_request_context(object ctx) except NULL
143+
144+ cdef api Cpp2ConnContext* extract_cpp_connection_context(object ctx) except NULL
Original file line number Diff line number Diff line change @@ -234,3 +234,9 @@ cdef inline _get_SocketAddress(const cfollySocketAddress* sadr):
234234 os.fsdecode(sadr.getPath())
235235 )
236236 )
237+
238+ cdef api Cpp2RequestContext* extract_cpp_request_context(object ctx) except NULL :
239+ return (< RequestContext?> ctx)._ctx
240+
241+ cdef api Cpp2ConnContext* extract_cpp_connection_context(object ctx) except NULL :
242+ return (< ConnectionContext?> ctx)._ctx
You can’t perform that action at this time.
0 commit comments