Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/curtcox/JLHTTP
/ functions
Functions
145 in github.com/curtcox/JLHTTP
⨍
Functions
145
◇
Types & classes
17
↓ 1 callers
Method
toSizeApproxString
Returns a human-friendly string approximating the given data size, e.g. "316", "1.8K", "324M", etc. @param size the size to display @return a human-f
src/main/java/net/freeutils/httpserver/HTTPServer.java:2635
↓ 1 callers
Method
trimLeft
Returns the given string with all occurrences of the given character removed from its left side. @param s the string to trim @param c the character t
src/main/java/net/freeutils/httpserver/HTTPServer.java:2601
↓ 1 callers
Method
writeTrailingChunk
Writes the trailing chunk which marks the end of the stream. @param headers the (optional) trailing headers to write, or null @throws IOException if
src/main/java/net/freeutils/httpserver/HTTPServer.java:430
Method
ChunkedInputStream
Constructs a ChunkedInputStream with the given underlying stream, and a headers container to which the stream's trailing headers will be added. @para
src/main/java/net/freeutils/httpserver/HTTPServer.java:316
Method
ChunkedOutputStream
Constructs a ChunkedOutputStream with the given underlying stream. @param out the underlying output stream to which the chunked stream is writ
src/main/java/net/freeutils/httpserver/HTTPServer.java:397
Method
ContextInfo
Constructs a ContextInfo with the given context path. @param path the context path (without trailing slash)
src/main/java/net/freeutils/httpserver/HTTPServer.java:799
Method
FileContextHandler
(File dir)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1057
Method
HTTPServer
Constructs an HTTPServer which can accept connections on the given port. Note: the {@link #start()} method must be called to start accepting connectio
src/main/java/net/freeutils/httpserver/HTTPServer.java:1917
Method
Header
Constructs a header with the given name and value. Leading and trailing whitespace are trimmed. @param name the header name @param value the header v
src/main/java/net/freeutils/httpserver/HTTPServer.java:1119
Method
LimitedInputStream
Constructs a LimitedInputStream with the given underlying input stream and limit. @param in the underlying input stream @param limit the maximum numb
src/main/java/net/freeutils/httpserver/HTTPServer.java:247
Method
MethodContextHandler
(Method m, Object obj)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1080
Method
MultipartInputStream
Constructs a MultipartInputStream with the given underlying stream. @param in the underlying multipart stream @param boundary the multipart boundary
src/main/java/net/freeutils/httpserver/HTTPServer.java:509
Method
MultipartIterator
Creates a new MultipartIterator from the given request. @param req the multipart/form-data request @throws IOException if an IO error occurs @throws
src/main/java/net/freeutils/httpserver/HTTPServer.java:740
Method
Request
Constructs a Request from the data in the given input stream. @param in the input stream from which the request is read @throws IOException if an err
src/main/java/net/freeutils/httpserver/HTTPServer.java:1338
Method
Response
Constructs a Response whose output is written to the given stream. @param out the stream to which the response is written
src/main/java/net/freeutils/httpserver/HTTPServer.java:1586
Method
VirtualHost
Constructs a VirtualHost with the given name. @param name the host's name, or null if it is the default host
src/main/java/net/freeutils/httpserver/HTTPServer.java:851
Method
addAlias
Adds an alias for this host. @param alias the alias
src/main/java/net/freeutils/httpserver/HTTPServer.java:870
Method
addContexts
Adds contexts for all methods of the given object that are annotated with the {@link Context} annotation. @param o the object whose annotated methods
src/main/java/net/freeutils/httpserver/HTTPServer.java:984
Method
available
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:280
Method
available
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:546
Method
close
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:291
Method
close
Writes the trailing chunk if necessary, and closes the underlying stream. @throws IOException if an error occurs
src/main/java/net/freeutils/httpserver/HTTPServer.java:474
Method
getBody
Returns the part's body (form field value). @return the part's body
src/main/java/net/freeutils/httpserver/HTTPServer.java:714
Method
getContext
Returns the context handler for the given path. <p> If a context is not found for the given path, the search is repeated for its parent path, and so o
src/main/java/net/freeutils/httpserver/HTTPServer.java:947
Method
getFilename
Returns the part's filename (original filename entered in file form field). @return the part's filename, or null if there is none
src/main/java/net/freeutils/httpserver/HTTPServer.java:700
Method
getHeaders
Returns the part's headers. @return the part's headers
src/main/java/net/freeutils/httpserver/HTTPServer.java:707
Method
getName
Returns the part's name (form field name). @return the part's name
src/main/java/net/freeutils/httpserver/HTTPServer.java:693
Method
getName
Returns this host's name. @return this host's name, or null if it is the default host
src/main/java/net/freeutils/httpserver/HTTPServer.java:861
Method
getParams
Returns the request parameters, which are parsed both from the query part of the request URI, and from the request body if its content type is "applic
src/main/java/net/freeutils/httpserver/HTTPServer.java:1497
Method
getPath
Returns the context path. @return the context path, or null if there is none
src/main/java/net/freeutils/httpserver/HTTPServer.java:808
Method
getString
Returns the part's body as a string. If the part headers do not specify a charset, UTF-8 is used. @return the part's body as a string @throws IOExcep
src/main/java/net/freeutils/httpserver/HTTPServer.java:723
Method
main
Starts a stand-alone HTTP server, serving files from disk. @param args the command line arguments
src/main/java/net/freeutils/httpserver/HTTPServer.java:3050
Method
markSupported
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:286
Method
markSupported
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:551
Method
read
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:321
Method
read
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:520
Method
remove
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:775
Method
run
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:1868
Method
serve
(Request req, Response resp)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1061
Method
serve
(Request req, Response resp)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1091
Method
setDirectoryIndex
Sets the directory index file. For every request whose URI ends with a '/' (i.e. a directory), the index file is appended to the path, and the resulti
src/main/java/net/freeutils/httpserver/HTTPServer.java:895
Method
setExecutor
Sets the executor used in servicing HTTP connections. If null, a default executor is used. The caller is responsible for shutting down the provided ex
src/main/java/net/freeutils/httpserver/HTTPServer.java:1971
Method
setSocketTimeout
Sets the socket timeout for established connections. @param timeout the socket timeout in milliseconds
src/main/java/net/freeutils/httpserver/HTTPServer.java:1962
Method
stop
Stops this server. If it is already stopped, does nothing. Note that if an {@link #setExecutor Executor} was set, it must be closed separately.
src/main/java/net/freeutils/httpserver/HTTPServer.java:2050
Method
write
Writes a chunk containing the given byte. This method initializes a new chunk of size 1, and then writes the byte as the chunk data. @param b the byt
src/main/java/net/freeutils/httpserver/HTTPServer.java:446
← previous
101–145 of 145, ranked by callers