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
↓ 1 callers
Method
call_send
( &mut self, poll: &Registry, call: &mut Call, buf: Option<&[u8]>, )
src/httpc.rs:208
↓ 1 callers
Method
call_send
If request has body it will be either taken from buf, from Request provided to CallBuilder or will return SendState::WaitReqBody. buf slice is assume
src/api/default.rs:233
↓ 1 callers
Function
cert_pubkey
(_v: Vec<u8>)
src/tls_api/mod.rs:98
↓ 1 callers
Method
check_retry
(&mut self, now: Instant, host: &str)
src/resolve/mod.rs:81
↓ 1 callers
Method
close
A reply to close or initiate close. close must be sent by both parties. Body if present is capped at 125 bytes.
src/api/websocket.rs:169
↓ 1 callers
Method
close_call
( &mut self, call: crate::Call, keepalive: bool, )
src/connection.rs:992
↓ 1 callers
Method
complete_handshake
(&mut self)
src/tls_api/rustls.rs:74
↓ 1 callers
Method
connect
( &self, _domain: &str, _stream: S, )
src/tls_api/dummy.rs:54
↓ 1 callers
Method
connect_resolved
(&mut self, poll: &Registry)
src/connection.rs:289
↓ 1 callers
Method
copy_public_key_from_certificate
(&self)
src/tls_api/apple.rs:91
↓ 1 callers
Method
create_other
( &mut self, orig: usize, poll: &Registry, cfg: &HttpcCfg, con_offset:
src/connection.rs:856
↓ 1 callers
Method
danger_accept_invalid_certs
(&mut self)
src/tls_api/dummy.rs:42
↓ 1 callers
Method
deregister
(&mut self, poll: &Registry)
src/connection.rs:512
↓ 1 callers
Function
dns_parse
(buf: &[u8], vec: &mut SmallVec<[IpAddr; 2]>)
src/resolve/mod.rs:17
↓ 1 callers
Function
do_call
(htp: &mut Httpc, poll: &mut Poll, mut call: SimpleCall)
examples/get.rs:7
↓ 1 callers
Method
event
Get CallRef for ev if token in configured range for Httpc. Compare CallRef with external Call to find out which call this event belongs to if any. Th
src/api/builder.rs:404
↓ 1 callers
Method
exec
Execute directly. This will block until completion!
src/api/builder.rs:196
↓ 1 callers
Method
fill_send_req
(&mut self, buf: &mut Vec<u8>)
src/call.rs:175
↓ 1 callers
Method
find
(&mut self, host: &str)
src/resolve/cache.rs:26
↓ 1 callers
Method
finish
Consume and return response with body.
src/api/simple_call.rs:36
↓ 1 callers
Method
finish_inplace
Actually close connection and replace self with an empty websocket.
src/api/websocket.rs:241
↓ 1 callers
Method
first_use_done
(&mut self)
src/connection.rs:252
↓ 1 callers
Function
get_asn1_header_bytes
(pkt: CFStringRef, ksz: u32)
src/tls_api/apple.rs:109
↓ 1 callers
Method
get_bit
(&self, index: usize)
src/resolve/apple.rs:27
↓ 1 callers
Function
get_dns_servers
(_ipv4: bool, srvs: &mut SmallVec<[SocketAddr; 4]>)
src/resolve/mod.rs:249
↓ 1 callers
Method
get_url
(&mut self)
src/types.rs:674
↓ 1 callers
Method
gzip
Default true. Sets Accept-Encoding: gzip, deflate Will decompress response.
src/api/builder.rs:313
↓ 1 callers
Method
handshake
(mut self)
src/tls_api/mod.rs:135
↓ 1 callers
Method
host
(&mut self, host: &str)
src/types.rs:566
↓ 1 callers
Method
id
(&self)
src/api/mod.rs:264
↓ 1 callers
Method
idle_timeout
(&mut self, now: Instant)
src/connection.rs:229
↓ 1 callers
Method
insecure
(&mut self)
src/types.rs:670
↓ 1 callers
Method
is
Case insensitive header name comparison
src/api/mod.rs:72
↓ 1 callers
Method
is_active
True if websocket is established. False if still initiating or closed.
src/api/websocket.rs:113
↓ 1 callers
Method
is_closed
(&self)
src/connection.rs:237
↓ 1 callers
Method
is_done
(&self)
src/call.rs:146
↓ 1 callers
Method
is_done
Is request finished.
src/api/simple_call.rs:81
↓ 1 callers
Method
is_fixed
(&self)
src/types.rs:498
↓ 1 callers
Method
is_signalled_rd
(&self)
src/connection.rs:270
↓ 1 callers
Function
map_handshake_error
(e: openssl::ssl::HandshakeError<S>)
src/tls_api/openssl.rs:158
↓ 1 callers
Function
new_cache
()
src/resolve/cache.rs:77
↓ 1 callers
Method
open_cons
(&self)
src/connection.rs:621
↓ 1 callers
Method
parse
(s: &'a str)
src/types.rs:95
↓ 1 callers
Function
parse_class_code
(value: u16)
src/dns_parser/parser.rs:73
↓ 1 callers
Function
parse_opt_record
Function to parse an RFC 6891 OPT Pseudo RR
src/dns_parser/parser.rs:117
↓ 1 callers
Method
parse_packet
(&self, pkt: &[u8])
src/api/websocket.rs:514
↓ 1 callers
Function
parse_qclass_code
(value: u16)
src/dns_parser/parser.rs:65
↓ 1 callers
Method
path
(&mut self, inpath: &str)
src/types.rs:593
↓ 1 callers
Method
path_segm
Add a single segment of path. Parts are delimited by / which are added automatically. Any path unsafe characters are percent encoded. If part contains
src/api/builder.rs:145
↓ 1 callers
Method
peek_body
(&mut self, id: &::Call, off: &mut usize)
src/api/default.rs:187
↓ 1 callers
Method
peer_certificate
(&self)
src/tls_api/native.rs:97
↓ 1 callers
Method
peer_certificate
(&self)
src/tls_api/openssl.rs:114
↓ 1 callers
Method
peer_pubkey
(&self)
src/tls_api/mod.rs:79
↓ 1 callers
Method
ping
Ping server. Body if present is capped at 125 bytes.
src/api/websocket.rs:157
↓ 1 callers
Method
pong
A reply to ping or not. Both are valid. Body if present is capped at 125 bytes.
src/api/websocket.rs:162
↓ 1 callers
Method
pubkey
(&self)
src/tls_api/apple.rs:41
↓ 1 callers
Method
push_con
( &mut self, mut c: Con, call: CallImpl, poll: &Registry, cfg: &HttpcC
src/connection.rs:898
↓ 1 callers
Method
push_fixed_con
( &mut self, mut c: Con, call: CallImpl, poll: &Registry, cfg: &HttpcC
src/connection.rs:926
↓ 1 callers
Method
push_ka_con
(&mut self, con: u16, call: CallImpl)
src/connection.rs:968
↓ 1 callers
Method
query
Add a key-value pair to query. Any url unsafe characters are percent encoded.
src/api/builder.rs:159
↓ 1 callers
Method
read_hdr
( &mut self, con: &mut Con, buf: &mut Vec<u8>, resp: &mut crate::Response,
src/call.rs:763
↓ 1 callers
Method
read_packet
(&mut self, htp: &'a mut Httpc)
src/api/websocket.rs:461
↓ 1 callers
Method
recv_packet
You should call this in a loop until you get WSPacket::None.
src/api/websocket.rs:444
↓ 1 callers
Method
remove_other
(&mut self, fixed: bool, id: usize)
src/connection.rs:660
↓ 1 callers
Method
reserve_space
(&mut self, internal: bool, buf: &mut Vec<u8>)
src/call.rs:158
↓ 1 callers
Function
resolv_parse
(srvs: &mut SmallVec<[SocketAddr; 4]>, s: String)
src/resolve/mod.rs:283
↓ 1 callers
Method
reuse
(&mut self, poll: &Registry)
src/connection.rs:194
↓ 1 callers
Method
reuse
Reuse a response buffer for subsequent calls.
src/api/default.rs:201
↓ 1 callers
Method
send_text
Send text packet. Data gets copied out into an internal buffer, as it must be masked before sending. No bytes will have been sent after calling this.
src/api/websocket.rs:259
↓ 1 callers
Method
sendq_len
How many bytes are in send buffer waiting to be sent. Does not take into account any send_bin_inplace packets.
src/api/websocket.rs:119
↓ 1 callers
Method
set_bit
(&mut self, index: usize, val: bool)
src/resolve/apple.rs:40
↓ 1 callers
Method
signalled_dns
(&mut self, poll: &Registry, cache: &mut DnsCache)
src/connection.rs:299
↓ 1 callers
Method
simple
(self)
src/api/mod.rs:248
↓ 1 callers
Method
simple_call
Consume and execute HTTP call. Returns SimpleCall interface. CallBuilder is invalid after this call and will panic if used again.
src/api/default.rs:79
↓ 1 callers
Method
simple_call
Consume and execute HTTP call. Returns SimpleCall interface. CallBuilder is invalid after this call and will panic if used again.
src/api/builder.rs:226
↓ 1 callers
Method
start
Creates a new query Initially all sections are empty. You're expected to fill the questions section with `add_question`
src/dns_parser/builder.rs:21
↓ 1 callers
Method
start_time
(&self)
src/call.rs:88
↓ 1 callers
Method
switch
( &mut self, htp: &mut Httpc, poll: &Registry, resp: crate::Response, )
src/api/websocket.rs:548
↓ 1 callers
Method
timeout
(&mut self, now: Instant, host: &str)
src/connection.rs:223
↓ 1 callers
Method
timeout
Call periodically to check for call timeouts and DNS retries. Returns list of calls that have timed out. You must execute call_close yourself (or Simp
src/api/builder.rs:386
↓ 1 callers
Method
timeout_extend
(&mut self, out: &mut Vec<CallRef>)
src/httpc.rs:155
↓ 1 callers
Method
try_keepalive
(&mut self, host: &[u8], port: u16, poll: &Registry)
src/connection.rs:975
↓ 1 callers
Method
try_send
(&mut self, host: &str)
src/resolve/mod.rs:96
↓ 1 callers
Method
try_truncate
(&mut self, id: &::Call, off: &mut usize)
src/api/default.rs:190
↓ 1 callers
Method
websocket
(&mut self)
src/types.rs:490
↓ 1 callers
Method
write
(&mut self, buf: &[u8])
src/connection.rs:440
Function
_check_kinds
()
src/tls_api/mod.rs:224
Method
abort
Consume and abort call.
src/api/simple_call.rs:56
Method
abort_inplace
Abort and replace self with an empty call.
src/api/simple_call.rs:50
Method
add_der_certificate
(&mut self, cert: &[u8])
src/tls_api/native.rs:33
Method
add_der_certificate
(&mut self, cert: &[u8])
src/tls_api/openssl.rs:42
Method
add_pem_certificate
(&mut self, cert: &[u8])
src/tls_api/native.rs:41
Method
add_pem_certificate
(&mut self, cert: &[u8])
src/tls_api/openssl.rs:50
Method
add_pem_certificate
(&mut self, cert: &[u8])
src/tls_api/rustls.rs:263
Method
auth
Use http authentication with username and password.
src/api/builder.rs:131
Method
body
(&mut self, body: Vec<u8>)
src/api/default.rs:59
Method
body
Set body.
src/api/builder.rs:184
Method
build
(self)
src/tls_api/native.rs:56
Method
build
(self)
src/tls_api/openssl.rs:61
Method
build
(self)
src/tls_api/rustls.rs:282
← previous
next →
101–200 of 437, ranked by callers