CApi
@link("unit") @extern
object CApi
Type members
Types
type nxt_unit_init_t = CStruct11[Ptr[Byte], Ptr[Byte], CInt, CInt, CInt, nxt_unit_callbacks_t, nxt_unit_port_t, CInt, nxt_unit_port_t, nxt_unit_port_t, CInt]
type nxt_unit_request_info_t = CStruct12[Ptr[nxt_unit_t], Ptr[nxt_unit_ctx_t], Ptr[nxt_unit_port_t], Ptr[Byte], Ptr[nxt_unit_buf_t], Ptr[nxt_unit_response_t], Ptr[nxt_unit_buf_t], CInt, Ptr[nxt_unit_buf_t], CLongLong, CInt, Ptr[Byte]]
type nxt_unit_response_t = CStruct6[CLongInt, CInt, CInt, CShort, nxt_unit_sptr_t, nxt_unit_field_t]
type nxt_unit_websocket_frame_t = CStruct6[Ptr[nxt_unit_request_info_t], CLongInt, Ptr[nxt_websocket_header_t], Ptr[Byte], Ptr[nxt_unit_buf_t], CLongLong]
Value members
Concrete methods
def nxt_unit_response_add_field(req: Ptr[nxt_unit_request_info_t], name: CString, name_length: Byte, value: CString, value_length: Int): CInt
def nxt_unit_response_init(req: Ptr[nxt_unit_request_info_t], status: CShort, max_fields_count: CInt, max_fields_size: CInt): CInt
def nxt_unit_response_write_nb(req: Ptr[nxt_unit_request_info_t], start: CString, size: CSSize, min_size: CSSize): CSSize
def nxt_unit_websocket_read(ws: Ptr[nxt_unit_websocket_frame_t], dest: Ptr[Byte], size: CSSize): CSSize
def nxt_unit_websocket_send(req: Ptr[nxt_unit_request_info_t], opcode: Byte, last: Byte, start: Ptr[Byte], size: CSSize): CInt