MCPcopy Create free account

hub / github.com/OctaneWeb/Octane / functions

Functions237 in github.com/OctaneWeb/Octane

Methodcookie
(&mut self, cookie: Cookie<'a>)
src/responder.rs:409
Functioncookie_new
()
src/cookie.rs:102
Functioncookie_parsing
()
src/cookie.rs:108
Functioncookie_serialize
()
src/cookie.rs:120
Methoddefault
()
src/responder.rs:518
Methodderef
(&self)
src/util.rs:60
Functiondoes_not_semantically_validate_the_version_token
()
octane_http/src/http1x/raw_request.rs:199
Functioneat_till_finds_first_byte
()
octane_http/src/eater.rs:59
Functioneat_till_four_bytes_finds_terminator
()
octane_http/src/eater.rs:77
Functioneat_till_two_bytes_finds_pair
()
octane_http/src/eater.rs:67
Methoderr
(status_code: StatusCode, stream: S)
src/error.rs:42
Functionerrors_when_peer_hangs_up_before_head_completes
()
octane_http/src/http1x/mod.rs:127
Functionfail_empty_name
()
src/request.rs:576
Functionfail_extra_1
()
src/request.rs:482
Functionfail_extra_2
()
src/request.rs:489
Functionfail_malformed_name
()
src/request.rs:584
Functionfail_malformed_version
()
src/request.rs:497
Functionfail_missing_clause
()
src/request.rs:504
Functionfail_no_value
()
src/request.rs:569
Functionfail_traversal
()
src/path.rs:503
Functionfind_in_slice_locates_and_misses
()
octane_http/src/http1x/mod.rs:137
Methodfmt
(&self, f: &mut Formatter<'_>)
src/file_handler.rs:152
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/responder.rs:525
Methodfmt
(&self, f: &mut Formatter<'_>)
src/error.rs:64
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/path.rs:18
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
octane_http/src/lib.rs:133
Methodfrom
(cookie: CookieRs<'b>)
src/cookie.rs:88
Methodfrom
(p: PathBuf)
src/path.rs:132
Methodfrom_iter
(iter: I)
src/path.rs:409
Methodfrom_raw
( headers: &'a Headers, request_line: RequestLine, mut body: &'a [u8], body_ve
src/request.rs:296
Methodfrom_str
(s: &str)
src/path.rs:140
Methodget
(&mut self, path: &str, closure: Closure)
src/server.rs:235
Methodget_arr
Get the vector (array) from a `QueryValue` instance, else None
src/query.rs:179
Methodget_extended_query
(&self)
src/request.rs:345
Methodget_extension
A helper method to get extension from a PathBuf
src/file_handler.rs:57
Methodget_obj
Get the object (key and value seperated items) from a `QueryValue` instance, else None
src/query.rs:187
Methodget_query
Parse the query and return the key value pairs in the form of an HashMap ``` use octane::prelude::*; let mut app = Octane::new(); app.get("/", rout
src/request.rs:338
Functionget_second
(tup: (PathChunk, PathNode<T>))
src/path.rs:444
Methodget_str
Get the string from a `QueryValue` instance, else None
src/query.rs:171
Methodhandle_file
Takes a Pathbuf and returns a FileHandler struct
src/file_handler.rs:33
Methodhas_headers
(&self)
octane_http/src/http1x/raw_request.rs:102
Methodhas_request_method
(&self)
octane_http/src/http1x/raw_request.rs:114
Methodhas_request_url
(&self)
octane_http/src/http1x/raw_request.rs:110
Methodhas_request_version
(&self)
octane_http/src/http1x/raw_request.rs:106
Methodheaders
(&self)
src/responder.rs:496
Methodheaders_sent
Tells if the headers are sent or not # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { assert_eq
src/responder.rs:315
Functionhttp_1x_reader
Free-function form of [`Http1xReader::new`], kept for call sites that read a request without holding onto a reader type.
octane_http/src/http1x/mod.rs:61
Functionis_ctl
(c: char)
src/path.rs:440
Methodjson
(&mut self, structure: T)
src/responder.rs:261
Methodkeep_alive
(&self)
src/http/mod.rs:47
Methodlisten_ssl
(self, exec: C, server: Arc<Octane>)
src/server_builder.rs:50
Methodlisten_ssl
(server: Arc<Octane>)
src/server.rs:138
Methodmax
Returns the amount of max requests specified in the keep alive header
src/request.rs:393
Methodmime_type
Perform a match on the extension and return the mime type accordingly
src/file_handler.rs:68
Methodname
Return the name of the header
src/request.rs:165
Methodnew
Creates a new `Cookie` instance with the given `name` and `value`. # Example ``` use octane::prelude::*; let cookie = octane::cookie::Cookie::new("
src/cookie.rs:45
Methodnew
Returns a new Ssl struct instance with default port 443
src/config.rs:42
Methodnew
(err_type: u8)
src/file_handler.rs:26
Methodnew
(port: u16)
src/server_builder.rs:20
Methodnew
Generates a new empty response
src/responder.rs:459
Methodnew
Creates a new server instance with empty config and empty router
src/server.rs:55
Methodnew
(string: &'a [T], seq: &'a [T])
src/util.rs:16
Methodnew
()
src/path.rs:28
Methodnew
Return a new and empty router instance, with this you can start using router.METHODs on it and then append the `Router` instance to the app (`Octane`)
src/router.rs:226
Methodnew
(it: &'a mut dyn Iterator<Item = T>)
src/query.rs:53
Methodnew
( mut reader: R, data: &'a mut Vec<u8>, )
octane_http/src/http1x/mod.rs:25
Methodnew
An empty request view, with every field pointing at an empty slice.
octane_http/src/http1x/raw_request.rs:39
Methodnew_empty
Creates a new response with empty body
src/responder.rs:445
Methodnew_from_slice
Creates a new response from a slice
src/responder.rs:437
Methodnext
(&mut self)
src/path.rs:293
Methodnow
()
src/time.rs:29
Methodpad_zero
(self)
src/time.rs:22
Methodparse
Parse a Cookie header value and create a Vec with all the cookies in the header
src/cookie.rs:70
Methodparse
(path: &str)
src/path.rs:44
Functionparse_without_body
Helper function for extracting some headers
octane_http/src/http1x/mod.rs:92
Functionparses_a_minimal_request_with_no_headers
()
octane_http/src/http1x/raw_request.rs:124
Functionparses_headers_and_body
()
octane_http/src/http1x/raw_request.rs:137
Functionparsing_is_zero_copy
()
octane_http/src/http1x/raw_request.rs:161
Methodpatch
(&mut self, path: &str, closure: Closure)
src/router.rs:456
Methodpoll_read
(mut self: Pin<&mut Self>, _: &mut Context, buf: &mut ReadBuf)
src/util.rs:66
Functionreads_a_request_split_across_chunks
()
octane_http/src/http1x/mod.rs:112
Methodreason_phrase
(&self)
src/responder.rs:478
Methodredirect
Sets the Location header with a status code `302 FOUND` # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|re
src/responder.rs:383
Functionrejects_empty_method
()
octane_http/src/http1x/raw_request.rs:215
Functionrejects_empty_version
()
octane_http/src/http1x/raw_request.rs:190
Functionrejects_request_line_without_spaces
()
octane_http/src/http1x/raw_request.rs:182
Functionrejects_request_without_head_terminator
()
octane_http/src/http1x/raw_request.rs:207
Functionresponse_with_different_http_version
()
src/responder.rs:569
Functionresponse_with_status_code_different
()
src/responder.rs:557
Functionrouter_append_test
()
src/router.rs:497
Functionrouter_test
()
src/router.rs:480
Methodsend
Puts the given text to the body and send it as html by default # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", rout
src/responder.rs:138
Methodsend_file
Send a file as the response, automatically detect the mime type and set the headers accordingly # Example ``` use octane::prelude::*; use std::path:
src/responder.rs:221
Methodserve
(stream_async: S, server: Arc<Octane>)
src/server.rs:167
Methodset_keepalive
(&mut self, duration: Duration)
src/config.rs:248
Methodset_keepalive
(&mut self, duration: Duration)
src/server.rs:261
Functionsome_more_time_stamps
()
src/time.rs:175
Functionsome_time_stamp
()
src/time.rs:168
Methodssl
(&mut self, port: u16)
src/server.rs:268
Functionstart_date
()
src/time.rs:161
← previousnext →101–200 of 237, ranked by callers