Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OctaneWeb/Octane
/ functions
Functions
237 in github.com/OctaneWeb/Octane
⨍
Functions
237
◇
Types & classes
43
↓ 26 callers
Method
get
(&'a self, path: &'a PathBuf)
src/path.rs:257
↓ 22 callers
Method
iter
(&self)
src/path.rs:330
↓ 22 callers
Method
to_string
(&self)
octane_http/src/lib.rs:49
↓ 18 callers
Method
insert
(&mut self, path: PathBuf, data: T)
src/path.rs:208
↓ 9 callers
Method
into_iter
(self)
src/path.rs:386
↓ 9 callers
Method
next
(&mut self)
src/util.rs:32
↓ 9 callers
Method
parse
Parse the head of an HTTP/1.x request out of `buf`, borrowing from it. `buf` is expected to contain at least the request-line and the headers termina
octane_http/src/http1x/raw_request.rs:48
↓ 7 callers
Method
extend
(&mut self, iter: I)
src/path.rs:401
↓ 7 callers
Method
get
(&mut self, path: &str, closure: Closure)
src/router.rs:444
↓ 7 callers
Function
run
(octane: Octane, exec: T)
tests/common.rs:7
↓ 6 callers
Function
extend
(ts: &mut TokenStream, tt: T)
octane_macros/src/util.rs:25
↓ 6 callers
Method
set
Adds appends a custom header with the headers that will be sent. Note**: This will overwrite the header with the same name # Example ``` use octane
src/responder.rs:95
↓ 6 callers
Function
unescape_hex
(string: &str)
src/query.rs:3
↓ 5 callers
Method
build
Returns a `CookieBuilder` from the `cookie-rs` library to build a `Cookie`. # Example ``` use octane::prelude::*; use cookie::Cookie as CookieRs; l
src/cookie.rs:65
↓ 4 callers
Method
format
(&self)
src/time.rs:42
↓ 4 callers
Method
next
(&mut self)
src/query.rs:89
↓ 4 callers
Function
parse_query
(query: &str)
src/query.rs:119
↓ 4 callers
Method
set_keepalive
(&mut self, keep_alive: KeepAliveState)
src/http/mod.rs:40
↓ 4 callers
Method
status
Set the status code from the status code enum # Example ``` use octane::prelude::*; use octane::StatusCode; let mut app = Octane::new(); app.get( "
src/responder.rs:287
↓ 3 callers
Method
add
(&mut self, closure: Closure)
src/router.rs:460
↓ 3 callers
Method
default_headers
Automatically set headers like date, content length, and sent content header to "text/html" if no content header is sent
src/responder.rs:148
↓ 3 callers
Method
delete
(&mut self, path: &str, closure: Closure)
src/server.rs:238
↓ 3 callers
Method
delete
(&mut self, path: &str, closure: Closure)
src/router.rs:448
↓ 3 callers
Method
get_data
Consume the response and get the final formed http response that the server will send in bytes
src/responder.rs:193
↓ 3 callers
Method
head
(&mut self, path: &str, closure: Closure)
src/server.rs:229
↓ 3 callers
Method
head
(&mut self, path: &str, closure: Closure)
src/router.rs:436
↓ 3 callers
Method
is_some
Return false if the RequestMethod is `None`, otherwise it's true
src/request.rs:51
↓ 3 callers
Function
parse_extended_query
(query: &str)
src/query.rs:197
↓ 3 callers
Method
patch
(&mut self, path: &str, closure: Closure)
src/server.rs:244
↓ 3 callers
Method
post
(&mut self, path: &str, closure: Closure)
src/server.rs:241
↓ 3 callers
Method
post
(&mut self, path: &str, closure: Closure)
src/router.rs:452
↓ 3 callers
Method
put
(&mut self, path: &str, closure: Closure)
src/server.rs:232
↓ 3 callers
Method
put
(&mut self, path: &str, closure: Closure)
src/router.rs:440
↓ 3 callers
Method
unwrap_node_mut
(&mut self)
src/path.rs:180
↓ 2 callers
Function
acceptor
(settings: &OctaneConfig)
src/tls/rustls.rs:13
↓ 2 callers
Method
append
Appends a settings instance to self
src/config.rs:212
↓ 2 callers
Function
block_on
(fut: F)
octane_http/src/http1x/mod.rs:104
↓ 2 callers
Method
cert
Mutates the Ssl struct and sets the SSL certificate path # Example ```no_run use octane::config::OctaneConfig; let mut config = OctaneConfig::new()
src/config.rs:77
↓ 2 callers
Method
check_matches
( &'a self, other: &'b PathBuf, )
src/path.rs:71
↓ 2 callers
Function
eat_till
(buf: &[u8], byte: char)
octane_http/src/eater.rs:3
↓ 2 callers
Function
find_in_slice
(haystack: &[T], needle: &[T])
octane_http/src/http1x/mod.rs:71
↓ 2 callers
Function
from_hex
(chr: char)
src/query.rs:102
↓ 2 callers
Method
into
(self)
octane_http/src/lib.rs:126
↓ 2 callers
Method
key
Mutates the Ssl struct and sets the private key path # Example ```no_run use octane::config::OctaneConfig; let mut config = OctaneConfig::new(); co
src/config.rs:61
↓ 2 callers
Method
peek
(&mut self)
src/query.rs:63
↓ 2 callers
Method
set
(&mut self, err_code: StatusCode)
src/http/mod.rs:37
↓ 2 callers
Method
ssl
(&mut self, port: u16)
src/config.rs:256
↓ 1 callers
Method
append
append the routes stored in a custom Router to the self Router
src/router.rs:234
↓ 1 callers
Function
client_request
(url: &str)
tests/common.rs:35
↓ 1 callers
Function
data_to_string
(mut data: (String, BoxReader))
src/responder.rs:540
↓ 1 callers
Method
dfs
(&self, chunks: &[String])
src/path.rs:234
↓ 1 callers
Function
eat_till_four_bytes
(buf: &[u8], bytes: &[u8; 4])
octane_http/src/eater.rs:33
↓ 1 callers
Function
eat_till_two_bytes
(buf: &[u8], bytes: &[u8; 2])
octane_http/src/eater.rs:17
↓ 1 callers
Method
find_seq
(&self)
src/util.rs:24
↓ 1 callers
Method
get
Get the header value by name # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { res.send("Hello,
src/responder.rs:116
↓ 1 callers
Method
get_cert
(&self)
src/config.rs:229
↓ 1 callers
Method
get_key
(&self)
src/config.rs:237
↓ 1 callers
Method
get_reader
(self)
src/responder.rs:24
↓ 1 callers
Method
has_body
(&self)
src/responder.rs:433
↓ 1 callers
Function
http10_check
(validator: &mut Http)
src/http/http10.rs:5
↓ 1 callers
Function
http11_check
(validator: &mut Http)
src/http/http11.rs:4
↓ 1 callers
Method
http_version
Sets the http version specified, to specify a version the version type should be variant of HttpVersion
src/responder.rs:293
↓ 1 callers
Method
is_malformed
(&self)
src/http/mod.rs:43
↓ 1 callers
Method
is_some
(&self)
src/responder.rs:31
↓ 1 callers
Method
listen
(mut self, exec: C, server: Arc<Octane>)
src/server_builder.rs:33
↓ 1 callers
Method
listen
Start listening on the port specified, the listen function also starts the Ssl server if the features are enabled and the key/certs are provided # Ex
src/server.rs:125
↓ 1 callers
Method
month_day
(&self)
src/time.rs:85
↓ 1 callers
Method
parse
Parses a request line str and returns a request line struct.
src/request.rs:87
↓ 1 callers
Function
pascal_case
(dat: &str)
octane_macros/src/util.rs:4
↓ 1 callers
Method
run
Fetch the closure according to the request path, run that specific closure.
src/router.rs:259
↓ 1 callers
Method
send
( mut response: (String, BoxReader), mut stream_async: S, )
src/server.rs:213
↓ 1 callers
Method
send
(self, stream: S)
src/error.rs:48
↓ 1 callers
Method
serialise
Prepare the `Set-Cookie` Header string from the values in the HashMap
src/cookie.rs:82
↓ 1 callers
Method
should_continue
Returns true if the variant is `Flow::Next`
src/router.rs:48
↓ 1 callers
Method
timeout
Returns the amount of timeout specified in the keep alive header
src/request.rs:388
↓ 1 callers
Method
unwrap_leaf
(&self)
src/path.rs:188
↓ 1 callers
Method
unwrap_leaf_mut
(&mut self)
src/path.rs:196
↓ 1 callers
Method
unwrap_node
(&self)
src/path.rs:172
↓ 1 callers
Method
week_day
pub fn with_stamp(self, stamp: i64) -> Option<Self> { Self::time(stamp) } */
src/time.rs:72
↓ 1 callers
Method
with_router
Appends** the router routes to the routes that the server instance holds, this allows you to independently add routes to a route Router structure and
src/server.rs:104
↓ 1 callers
Method
with_type
Modify the `Content-Type` header as passed in the argument # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(
src/responder.rs:184
Function
acceptor
(settings: &OctaneConfig)
src/tls/openssl.rs:9
Method
add
(&mut self, closure: Closure)
src/server.rs:247
Method
add_route
(&mut self, path: &str, closure: Closure)
src/server.rs:255
Method
add_route
(&mut self, path: &str, closure: Closure)
src/router.rs:468
Method
attachment
Sets the http `Content-Disposition` header field to `attachment` # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", r
src/responder.rs:335
Method
attachment_with_filename
Sets the http `Content-Disposition` header field to `attachment` with the filename and automatically updates the content type with the extension provi
src/responder.rs:358
Function
basic_header_value_retrival
()
tests/headers.rs:6
Function
basic_https_hello_world_openssl
()
tests/openssl.rs:6
Function
basic_https_hello_world_rustls
()
tests/rustls.rs:9
Function
basic_router
()
tests/router.rs:5
Function
basic_server_hello
()
tests/server.rs:4
Function
basic_server_x_req
()
tests/server.rs:18
Function
basic_url_variables
()
tests/url_variables.rs:5
Function
body_remainder_keeps_trailing_crlfs
()
octane_http/src/http1x/raw_request.rs:150
Method
charset
Sets the content type charset # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { res.charset("utf
src/responder.rs:429
Method
check_starts_with
(&self, other: &PathBuf)
src/path.rs:61
Method
chunks
(&self)
src/path.rs:32
Method
concat
(&self, other: &PathBuf)
src/path.rs:119
Method
concat_owned
(&self, other: PathBuf)
src/path.rs:109
next →
1–100 of 237, ranked by callers