Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SergejJurecko/mio_httpc
/ functions
Functions
437 in github.com/SergejJurecko/mio_httpc
⨍
Functions
437
◇
Types & classes
100
↓ 37 callers
Method
as_mut
(&mut self)
src/connection.rs:587
↓ 36 callers
Method
as_bytes
(&self)
src/types.rs:76
↓ 23 callers
Method
truncate
(&mut self)
src/call.rs:121
↓ 21 callers
Method
get_mut
(&mut self)
src/tls_api/mod.rs:71
↓ 17 callers
Method
clone
keep this functionality internal to lib
src/api/mod.rs:293
↓ 17 callers
Method
is_none
(&self)
src/connection.rs:569
↓ 17 callers
Method
stop
(&mut self, htp: &mut Httpc)
src/api/websocket.rs:246
↓ 16 callers
Method
as_ref
(&self)
src/connection.rs:549
↓ 16 callers
Method
take
(&mut self)
src/connection.rs:593
↓ 14 callers
Method
as_str
(&self)
src/types.rs:402
↓ 12 callers
Method
invalidate
pub(crate) fn call_id(&self) -> u16 { ((self.0 >> 16) & 0xFFFF) as u16 } pub(crate) fn con_id(&self) -> u16 { (self.0 & 0xFFFF) as u16 } Once call fin
src/api/mod.rs:323
↓ 10 callers
Method
finish
Actually close connection. If any other call returns error, you should always call finish afterwards.
src/api/websocket.rs:236
↓ 7 callers
Method
call_close
(&mut self, id: Call, keepalive: bool)
src/httpc.rs:122
↓ 7 callers
Method
is_empty
(&self)
src/api/mod.rs:201
↓ 7 callers
Method
perform
Perform socket operation.
src/api/websocket.rs:570
↓ 7 callers
Method
set_to_close
(&mut self, b: bool)
src/connection.rs:256
↓ 6 callers
Method
call_close_int
(&mut self, id: Call, keepalive: bool)
src/httpc.rs:129
↓ 6 callers
Method
call_send
(&mut self, htp: &mut Httpc, poll: &Registry, pkt: &[u8])
src/api/websocket.rs:359
↓ 6 callers
Method
update_token
(&mut self, poll: &Registry, v: usize, fixed: bool)
src/connection.rs:149
↓ 6 callers
Method
write
Write a header to a buffer slice # Panics When buffer size is not exactly 12 bytes
src/dns_parser/header.rs:68
↓ 5 callers
Method
get
Start a GET request.
src/api/default.rs:32
↓ 5 callers
Method
get_buf
(&mut self)
src/httpc.rs:140
↓ 5 callers
Method
get_other
(&self)
src/connection.rs:137
↓ 5 callers
Method
next
(&mut self)
src/api/mod.rs:107
↓ 5 callers
Method
send_buf_append
only append do not send.
src/api/websocket.rs:174
↓ 5 callers
Method
url
(&mut self, url: &str)
src/types.rs:501
↓ 4 callers
Method
byte_len
(&self)
src/dns_parser/name.rs:89
↓ 4 callers
Method
close_con
(&mut self, toclose: usize)
src/connection.rs:1054
↓ 4 callers
Function
connect
(addr: SocketAddr)
src/connection.rs:21
↓ 4 callers
Method
headers
(&self)
src/api/mod.rs:38
↓ 4 callers
Method
maybe_gunzip
(&self, inbuf: Vec<u8>, extbuf: Option<&mut Vec<u8>>)
src/call.rs:393
↓ 4 callers
Method
push_to
copy full chunks to dst, move remainder (non-full chunk) back right after hdr.
src/types.rs:243
↓ 4 callers
Method
reg
(&mut self, poll: &Registry, rdy: Interest)
src/connection.rs:260
↓ 4 callers
Method
save
(&mut self, host: &str, ipl: IpList)
src/resolve/cache.rs:37
↓ 4 callers
Method
set
(&mut self, bit_offset: usize, bit_width: u8, val: u64)
src/resolve/apple.rs:74
↓ 4 callers
Method
settings
(&self)
src/call.rs:142
↓ 3 callers
Method
call_close
Prematurely finish call.
src/api/default.rs:204
↓ 3 callers
Method
call_id
(&self)
src/connection.rs:141
↓ 3 callers
Method
con
(&self)
src/api/mod.rs:281
↓ 3 callers
Method
create_dns
(&mut self, cfg: &HttpcCfg)
src/connection.rs:159
↓ 3 callers
Method
create_sock
(&mut self, cache: &mut DnsCache)
src/connection.rs:170
↓ 3 callers
Method
do_send_buf
(&mut self, htp: &mut Httpc, poll: &Registry)
src/api/websocket.rs:207
↓ 3 callers
Method
event
(&mut self, ev: &Event)
src/httpc.rs:164
↓ 3 callers
Method
get
(&self, bit_offset: usize, bit_width: u8)
src/resolve/apple.rs:57
↓ 3 callers
Method
https
(&mut self)
src/types.rs:570
↓ 3 callers
Function
ip
(index: u8)
src/resolve/cache.rs:73
↓ 3 callers
Method
is_call
For quick comparison with httpc::event response. If cid is none will return false.
src/api/websocket.rs:129
↓ 3 callers
Method
is_ref
Is CallRef for this call.
src/api/mod.rs:253
↓ 3 callers
Function
parse_record
Generic function to parse answer, nameservers, and additional records.
src/dns_parser/parser.rs:82
↓ 3 callers
Method
path
Set full path. No percent encoding is done. Will fail later if it contains invalid characters.
src/api/builder.rs:137
↓ 3 callers
Method
query
(&mut self, k: &str, v: &str)
src/types.rs:533
↓ 3 callers
Method
remove_con
(&mut self, conid: usize)
src/api/mod.rs:257
↓ 3 callers
Method
set_other
(&mut self, other: Option<usize>)
src/connection.rs:133
↓ 3 callers
Method
set_signalled_rd
(&mut self, v: bool)
src/connection.rs:275
↓ 3 callers
Method
set_signalled_wr
(&mut self, v: bool)
src/connection.rs:285
↓ 2 callers
Method
add_question
Adds a question to the packet # Panics Answers, nameservers or additional section has already been written There are already 65535 questions in the
src/dns_parser/builder.rs:54
↓ 2 callers
Method
call_recv
If no buf provided, response body (if any) is stored in an internal buffer. If buf provided after some body has been received, it will be copied to it
src/api/default.rs:244
↓ 2 callers
Method
can_retry
(&self)
src/call.rs:68
↓ 2 callers
Method
check_done
Return true if 0 sized chunk found and stream finished.
src/types.rs:220
↓ 2 callers
Method
cleanup
(&mut self, now: Instant)
src/resolve/cache.rs:54
↓ 2 callers
Method
clone_other
(&mut self, other: usize, tk: usize)
src/connection.rs:101
↓ 2 callers
Method
complete_handleshake_mid
( mut self, )
src/tls_api/rustls.rs:105
↓ 2 callers
Method
complete_prior_io
(&mut self)
src/tls_api/rustls.rs:93
↓ 2 callers
Method
cons
(&self)
src/api/mod.rs:288
↓ 2 callers
Method
digest_auth
(&mut self, b: bool)
src/types.rs:644
↓ 2 callers
Method
fill_frame
( &mut self, fin: bool, mut op: u8, pkt: &[u8], frame: &mut [u8],
src/api/websocket.rs:401
↓ 2 callers
Method
get_chunk_size
(&mut self, b: &[u8])
src/types.rs:274
↓ 2 callers
Function
get_google
(srvs: &mut SmallVec<[SocketAddr; 4]>)
src/resolve/mod.rs:278
↓ 2 callers
Function
hash
Make use of the TLS implementation's crypto hashing functions. Not picking any TLS implementation as a feature means hash will not work also and will
src/tls_api/dummy.rs:17
↓ 2 callers
Method
host
(&self)
src/connection.rs:145
↓ 2 callers
Method
into
(self)
src/dns_parser/enums.rs:158
↓ 2 callers
Method
into_error
(self)
src/tls_api/rustls.rs:48
↓ 2 callers
Method
is_first_use
(&self)
src/connection.rs:241
↓ 2 callers
Method
is_init
(&self)
src/api/websocket.rs:43
↓ 2 callers
Method
is_ref
(&self, r: CallRef)
src/api/simple_call.rs:21
↓ 2 callers
Method
is_ref
(&self, r: CallRef)
src/api/websocket.rs:123
↓ 2 callers
Method
is_signalled_wr
(&self)
src/connection.rs:280
↓ 2 callers
Method
parse
(code: u16)
src/dns_parser/enums.rs:200
↓ 2 callers
Method
path_segm
(&mut self, part: &str)
src/types.rs:601
↓ 2 callers
Method
port
Set connection port.
src/api/builder.rs:117
↓ 2 callers
Method
read
(&mut self, buf: &mut [u8])
src/connection.rs:416
↓ 2 callers
Method
register
( &mut self, poll: &Registry, token: Token, interest: Interest, )
src/connection.rs:478
↓ 2 callers
Method
remove_conid
(&mut self, fixed: bool, id: usize)
src/connection.rs:676
↓ 2 callers
Method
reregister
( &mut self, poll: &Registry, token: Token, interest: Interest, )
src/connection.rs:495
↓ 2 callers
Method
reuse
(&mut self, mut buf: Vec<u8>)
src/httpc.rs:52
↓ 2 callers
Method
set_idle
(&mut self, b: bool)
src/connection.rs:245
↓ 2 callers
Method
signalled_con
(&mut self, fixed: bool, id: usize, rdy: Interest)
src/connection.rs:625
↓ 2 callers
Method
stop
(self)
src/call.rs:150
↓ 2 callers
Method
timeout
(&mut self)
src/httpc.rs:149
↓ 2 callers
Method
timeout_ms
(&mut self, v: u64)
src/types.rs:662
↓ 2 callers
Method
url_hash
(&self, port: u16)
src/types.rs:334
↓ 1 callers
Method
add_der_certificate
(&mut self, cert: &[u8])
src/tls_api/rustls.rs:258
↓ 1 callers
Method
add_der_certificate
(&mut self, _cert: &[u8])
src/tls_api/dummy.rs:30
↓ 1 callers
Method
add_pem_certificate
(&mut self, _cert: &[u8])
src/tls_api/dummy.rs:34
↓ 1 callers
Function
ascii_hex_to_num
(ch: u8)
src/types.rs:309
↓ 1 callers
Method
auth
(&mut self, us: &str, pw: &str)
src/types.rs:553
↓ 1 callers
Method
auth_recv
(&mut self, v: AuthenticateInfo)
src/types.rs:716
↓ 1 callers
Method
build
(self)
src/tls_api/dummy.rs:38
↓ 1 callers
Method
call
( self, httpc: &mut HttpcImpl, poll: &Registry, )
src/types.rs:480
↓ 1 callers
Method
call_recv
( &mut self, poll: &Registry, call: &mut Call, buf: Option<&mut Vec<u8>>,
src/httpc.rs:268
next →
1–100 of 437, ranked by callers